Sha256: c64cb3b9ff53fcbc51a2aa0308b9f9055e73f8bdd9fec72e1076e5d3666434e5

Contents?: true

Size: 1.11 KB

Versions: 3

Compression:

Stored size: 1.11 KB

Contents

# frozen_string_literal: true

require "lutaml/model"
require_relative "ellipsoidal_cs_property"
require_relative "geodetic_datum_property"
require_relative "abstract_crs"

module Ogc
  module Gml
    class GeographicCRS < AbstractCRS
      attribute :uses_ellipsoidal_cs, EllipsoidalCSProperty
      attribute :uses_geodetic_datum, GeodeticDatumProperty

      xml do
        root "GeographicCRS"
        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 "usesEllipsoidalCS", to: :uses_ellipsoidal_cs
        map_element "usesGeodeticDatum", to: :uses_geodetic_datum
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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