lib/ogc/gml/bezier.rb in ogc-gml-1.0.0 vs lib/ogc/gml/bezier.rb in ogc-gml-1.0.1
- old
+ new
@@ -1,27 +1,26 @@
# frozen_string_literal: true
-# --- bezier_type.rb ---
-require "shale"
+require "lutaml/model"
require_relative "coordinates"
require_relative "direct_position_list"
require_relative "knot_property"
require_relative "point_property"
require_relative "abstract_curve_segment"
module Ogc
module Gml
class Bezier < AbstractCurveSegment
- attribute :interpolation, Shale::Type::String, default: -> { "polynomialSpline" }
- attribute :is_polynomial, Shale::Type::Boolean
- attribute :knot_type, Shale::Type::String
+ attribute :interpolation, :string, default: -> { "polynomialSpline" }
+ attribute :is_polynomial, :boolean
+ attribute :knot_type, :string
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 :degree, Shale::Type::Integer
+ attribute :degree, :integer
attribute :knot, KnotProperty, collection: true
xml do
root "Bezier"
namespace "http://www.opengis.net/gml/3.2", "gml"