Sha256: 409bb1abd74bff02ef91580236d894c4badcff55d803dc748c56031a2f6516b0

Contents?: true

Size: 1.01 KB

Versions: 3

Compression:

Stored size: 1.01 KB

Contents

# frozen_string_literal: true

require "lutaml/model"

require_relative "direct_position_list"
require_relative "direct_position"
require_relative "point_property"
require_relative "abstract_curve_segment"

module Ogc
  module Gml
    class GeodesicString < AbstractCurveSegment
      attribute :interpolation, :string
      attribute :pos_list, DirectPositionList
      attribute :pos, DirectPosition, collection: true
      attribute :point_property, PointProperty, collection: true

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

        map_attribute "numDerivativesAtStart", to: :num_derivatives_at_start
        map_attribute "numDerivativesAtEnd", to: :num_derivatives_at_end
        map_attribute "numDerivativeInterior", to: :num_derivative_interior
        map_attribute "interpolation", to: :interpolation
        map_element "posList", to: :pos_list
        map_element "pos", to: :pos
        map_element "pointProperty", to: :point_property
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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