Skip to content

Commit

Permalink
fix: unit of measure subclasses
Browse files Browse the repository at this point in the history
  • Loading branch information
ronaldtse committed Aug 30, 2024
1 parent e3b4d69 commit 286c9bc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/ogc/gml/angle.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,18 @@
require "lutaml/model"

require_relative "measure"
require_relative "unit_of_measure"

module Ogc
module Gml
class Angle < Lutaml::Model::Serializable
class Angle < UnitOfMeasure
attribute :content, Measure

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

map_attribute "uom", to: :uom
map_content to: :content
end
end
Expand Down
4 changes: 3 additions & 1 deletion lib/ogc/gml/length.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,18 @@
require "lutaml/model"

require_relative "measure"
require_relative "unit_of_measure"

module Ogc
module Gml
class Length < Lutaml::Model::Serializable
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
Expand Down

0 comments on commit 286c9bc

Please sign in to comment.