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 29, 2024
1 parent 3d6ee33 commit 0a28375
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 0a28375

Please sign in to comment.