Sha256: 27f9648caea8d2a903e27c12fd24070275d3f31709d29c2d4ee240ca85a47665

Contents?: true

Size: 1.19 KB

Versions: 3

Compression:

Stored size: 1.19 KB

Contents

# frozen_string_literal: true

require "lutaml/model"
require_relative "ellipsoid_property"
require_relative "prime_meridian_property"
require_relative "abstract_datum"

module Ogc
  module Gml
    class GeodeticDatum < AbstractDatum
      attribute :prime_meridian, PrimeMeridianProperty
      attribute :ellipsoid, EllipsoidProperty

      xml do
        root "GeodeticDatum"
        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 "anchorDefinition", to: :anchor_definition
        map_element "realizationEpoch", to: :realization_epoch
        map_element "primeMeridian", to: :prime_meridian
        map_element "ellipsoid", to: :ellipsoid
      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_datum.rb
ogc-gml-1.0.2 lib/ogc/gml/geodetic_datum.rb
ogc-gml-1.0.1 lib/ogc/gml/geodetic_datum.rb