Sha256: 17e9e8c3cd3c15be15dcdf4d9db3738e9665d2aa52ce288cf989eb32cb882ba3

Contents?: true

Size: 1.03 KB

Versions: 3

Compression:

Stored size: 1.03 KB

Contents

# frozen_string_literal: true

require "lutaml/model"
require_relative "direct_position"
require_relative "abstract_geometry"

module Ogc
  module Gml
    class Point < AbstractGeometry
      attribute :pos, DirectPosition
      attribute :coordinates, Coordinates

      xml do
        root "Point"
        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_attribute "srsName", to: :srs_name
        map_attribute "srsDimension", to: :srs_dimension
        map_attribute "axisLabels", to: :axis_labels
        map_attribute "uomLabels", to: :uom_labels
        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 "pos", to: :pos
        map_element "coordinates", to: :coordinates
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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