Sha256: 6eb9b39b07fe245f66b886a99e13d2470fac6348b41563fd3675ef741c7014c9

Contents?: true

Size: 1.36 KB

Versions: 3

Compression:

Stored size: 1.36 KB

Contents

# frozen_string_literal: true

require "lutaml/model"

require_relative "cartesian_cs_property"
require_relative "ellipsoidal_cs_property"
require_relative "geodetic_datum_property"
require_relative "spherical_cs_property"
require_relative "abstract_crs"

module Ogc
  module Gml
    class GeodeticCRS < AbstractCRS
      attribute :ellipsoidal_cs, EllipsoidalCSProperty
      attribute :cartesian_cs, CartesianCSProperty
      attribute :spherical_cs, SphericalCSProperty
      attribute :geodetic_datum, GeodeticDatumProperty

      xml do
        root "GeodeticCRS"
        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 "ellipsoidalCS", to: :ellipsoidal_cs
        map_element "cartesianCS", to: :cartesian_cs
        map_element "sphericalCS", to: :spherical_cs
        map_element "geodeticDatum", to: :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/geodetic_crs.rb
ogc-gml-1.0.2 lib/ogc/gml/geodetic_crs.rb
ogc-gml-1.0.1 lib/ogc/gml/geodetic_crs.rb