Sha256: 08559a95db3e7293eb016c4025a006d1f9a16f61e0a7d4d4c64004a324222fcc
Contents?: true
Size: 949 Bytes
Versions: 19
Compression:
Stored size: 949 Bytes
Contents
# mdJson 2.0 writer - geographic extent # History: # Stan Smith 2017-03-15 refactored for mdJson/mdTranslator 2.0 # Josh Bradley original script require 'jbuilder' require_relative 'mdJson_identifier' require_relative 'mdJson_boundingBox' module ADIWG module Mdtranslator module Writers module MdJson module GeographicExtent def self.build(hGeographic) Jbuilder.new do |json| 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] end end # build end # GeographicExtent end end end end
Version data entries
19 entries across 19 versions & 1 rubygems