Module: ADIWG::Mdtranslator::Writers::MdJson::GeographicExtent

Defined in:
lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_geographicExtent.rb

Class Method Summary collapse

Class Method Details

.build(hGeographic) ⇒ Object



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