Sha256: 9c44ec1330bf03e445c243208b4c1bc8e1ee8b2596b5db5eb4cc724c703707e9

Contents?: true

Size: 903 Bytes

Versions: 3

Compression:

Stored size: 903 Bytes

Contents

# frozen_string_literal: true

require "lutaml/model"

require_relative "coordinates"
require_relative "direct_position_list"
require_relative "direct_position"
require_relative "point_property"

module Ogc
  module Gml
    class LinearRing < Lutaml::Model::Serializable
      attribute :pos, DirectPosition, collection: true
      attribute :point_property, PointProperty, collection: true
      attribute :point_rep, PointProperty, collection: true
      attribute :pos_list, DirectPositionList
      attribute :coordinates, Coordinates

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

        map_element "pos", to: :pos
        map_element "pointProperty", to: :point_property
        map_element "pointRep", to: :point_rep
        map_element "posList", to: :pos_list
        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/linear_ring.rb
ogc-gml-1.0.2 lib/ogc/gml/linear_ring.rb
ogc-gml-1.0.1 lib/ogc/gml/linear_ring.rb