# frozen_string_literal: true # --- cubic_spline_type.rb --- require "shale" require_relative "coordinates" require_relative "direct_position_list" require_relative "direct_position" require_relative "point_property" require_relative "vector" require_relative "abstract_curve_segment" module Ogc module Gml class CubicSpline < AbstractCurveSegment attribute :interpolation, Shale::Type::String attribute :degree, Shale::Type::Integer attribute :pos, DirectPosition, collection: true attribute :point_property, PointProperty, collection: true attribute :point_rep, PointProperty, collection: true attribute :pos_list, DirectPositionList attribute :coordinates, Coordinates attribute :vector_at_start, Vector attribute :vector_at_end, Vector xml do root "CubicSpline" 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 "degree", to: :degree 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 "vectorAtStart", to: :vector_at_start map_element "vectorAtEnd", to: :vector_at_end end end end end