module ADIWG::Mdtranslator::Writers::MdJson::GeographicExtent

Public Class Methods

build(hGeographic) click to toggle source
# 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