Sha256: ebd272994e0c6fa080d0b4a704b3f4e900a680443350c960558e908829c20f73

Contents?: true

Size: 1.25 KB

Versions: 3

Compression:

Stored size: 1.25 KB

Contents

# frozen_string_literal: true

require "lutaml/model"

require_relative "angle"
require_relative "direct_position"
require_relative "length"
require_relative "arc"

module Ogc
  module Gml
    class ArcByCenterPoint < Arc
      # Overrides Arc
      attribute :pos, DirectPosition
      attribute :point_property, PointProperty

      # Self
      attribute :radius, Length
      attribute :start_angle, Angle
      attribute :end_angle, Angle

      xml do
        root "ArcByCenterPoint"
        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_attribute "numArc", to: :num_arc
        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
        map_element "radius", to: :radius
        map_element "startAngle", to: :start_angle
        map_element "endAngle", to: :end_angle
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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