19
20
21
22
23
24
25
26
27
28
29
|
# File 'lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_geographicExtent.rb', line 19
def self.build(hGeographic)
Jbuilder.new do |json|
json.description hGeographic[:description]
json.containsData hGeographic[:containsData]
json.identifier Identifier.build(hGeographic[:identifier]) unless hGeographic[:identifier].empty?
json.boundingBox BoundingBox.build(hGeographic[:boundingBox]) unless hGeographic[:boundingBox].empty?
json.geographicElement hGeographic[:nativeGeoJson] unless hGeographic[:nativeGeoJson].empty?
end
end
|