Sha256: 827444f5609b2a086b832d84697f1769e7cfc546fadf7e10c0abc148ccec3ead

Contents?: true

Size: 1.29 KB

Versions: 3

Compression:

Stored size: 1.29 KB

Contents

# frozen_string_literal: true

require "lutaml/model"
require_relative "code_with_authority"
require_relative "coordinate_system_property"
require_relative "single_crs_property"
require_relative "abstract_general_derived_crs"

module Ogc
  module Gml
    class DerivedCRS < AbstractGeneralDerivedCRS
      attribute :base_crs, SingleCRSProperty
      attribute :derived_crs_type, CodeWithAuthority
      attribute :coordinate_system, CoordinateSystemProperty

      xml do
        root "DerivedCRS"
        namespace "http://www.opengis.net/gml/3.2", "gml"

        map_attribute "id", to: :id, prefix: "gml", namespace: "http://www.opengis.net/gml/3.2"
        map_element "metaDataProperty", to: :meta_data_property
        map_element "description", to: :description
        map_element "descriptionReference", to: :description_reference
        map_element "identifier", to: :identifier
        map_element "name", to: :name
        map_element "remarks", to: :remarks
        map_element "domainOfValidity", to: :domain_of_validity
        map_element "scope", to: :scope
        map_element "conversion", to: :conversion
        map_element "baseCRS", to: :base_crs
        map_element "derivedCRSType", to: :derived_crs_type
        map_element "coordinateSystem", to: :coordinate_system
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ogc-gml-1.0.3 lib/ogc/gml/derived_crs.rb
ogc-gml-1.0.2 lib/ogc/gml/derived_crs.rb
ogc-gml-1.0.1 lib/ogc/gml/derived_crs.rb