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

Version Path
adiwg-mdtranslator-2.3.2 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_geographicExtent.rb
adiwg-mdtranslator-2.3.1 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_geographicExtent.rb
adiwg-mdtranslator-2.3.0 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_geographicExtent.rb
adiwg-mdtranslator-2.2.0 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_geographicExtent.rb
adiwg-mdtranslator-2.1.2 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_geographicExtent.rb
adiwg-mdtranslator-2.1.1 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_geographicExtent.rb
adiwg-mdtranslator-2.1.0 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_geographicExtent.rb
adiwg-mdtranslator-2.0.0 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_geographicExtent.rb
adiwg-mdtranslator-2.0.0rc13 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_geographicExtent.rb
adiwg-mdtranslator-2.0.0rc11 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_geographicExtent.rb
adiwg-mdtranslator-2.0.0rc10 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_geographicExtent.rb
adiwg-mdtranslator-2.0.0rc9 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_geographicExtent.rb
adiwg-mdtranslator-2.0.0rc8 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_geographicExtent.rb
adiwg-mdtranslator-2.0.0rc7 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_geographicExtent.rb
adiwg-mdtranslator-2.0.0rc6 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_geographicExtent.rb
adiwg-mdtranslator-2.0.0rc5 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_geographicExtent.rb
adiwg-mdtranslator-2.0.0rc4 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_geographicExtent.rb
adiwg-mdtranslator-2.0.0rc3 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_geographicExtent.rb
adiwg-mdtranslator-2.0.0rc2 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_geographicExtent.rb