lib/ogc/gml/length.rb in ogc-gml-1.0.0 vs lib/ogc/gml/length.rb in ogc-gml-1.0.1
- old
+ new
@@ -1,20 +1,21 @@
# frozen_string_literal: true
-# --- length_type.rb ---
-require "shale"
+require "lutaml/model"
require_relative "measure"
+require_relative "unit_of_measure"
module Ogc
module Gml
- class Length < Shale::Mapper
+ class Length < UnitOfMeasure
attribute :content, Measure
xml do
root "LengthType"
namespace "http://www.opengis.net/gml/3.2", "gml"
+ map_attribute "uom", to: :uom
map_content to: :content
end
end
end
end