Sha256: 9ed976a3752f1aa7e87ae953d11beebe650203f776d37a832ac7f94524914f62

Contents?: true

Size: 814 Bytes

Versions: 28

Compression:

Stored size: 814 Bytes

Contents

# mdJson 2.0 writer - nominal resolution

# History:
#  Stan Smith 2019-09-24 original script

require 'jbuilder'
require_relative 'mdJson_measure'

module ADIWG
   module Mdtranslator
      module Writers
         module MdJson

            module NominalResolution

               @Namespace = ADIWG::Mdtranslator::Writers::MdJson

               def self.build(hResolution)

                  Jbuilder.new do |json|
                     json.scanningResolution Measure.build(hResolution[:scanningResolution]) unless hResolution[:scanningResolution].empty?
                     json.groundResolution Measure.build(hResolution[:groundResolution]) unless hResolution[:groundResolution].empty?
                  end

               end # build
            end # NominalResolution

         end
      end
   end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
adiwg-mdtranslator-2.19.0.pre.beta.31 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_nominalResolution.rb
adiwg-mdtranslator-2.19.0.pre.beta.30 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_nominalResolution.rb
adiwg-mdtranslator-2.19.0.pre.beta.29 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_nominalResolution.rb
adiwg-mdtranslator-2.19.0.pre.beta.28 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_nominalResolution.rb
adiwg-mdtranslator-2.19.0.pre.beta.27 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_nominalResolution.rb
adiwg-mdtranslator-2.19.0.pre.beta.26 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_nominalResolution.rb
adiwg-mdtranslator-2.19.0.pre.beta.13 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_nominalResolution.rb
adiwg-mdtranslator-2.19.0.pre.beta.12 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_nominalResolution.rb
adiwg-mdtranslator-2.19.0.pre.beta.11 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_nominalResolution.rb
adiwg-mdtranslator-2.19.0.pre.beta.10 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_nominalResolution.rb
adiwg-mdtranslator-2.19.0.pre.beta.9 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_nominalResolution.rb
adiwg-mdtranslator-2.19.0.pre.beta.8 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_nominalResolution.rb
adiwg-mdtranslator-2.19.0.pre.beta.7 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_nominalResolution.rb
adiwg-mdtranslator-2.18.4 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_nominalResolution.rb
adiwg-mdtranslator-2.18.2 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_nominalResolution.rb
adiwg-mdtranslator-2.18.1 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_nominalResolution.rb
adiwg-mdtranslator-2.18.0 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_nominalResolution.rb
adiwg-mdtranslator-2.18.0rc9 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_nominalResolution.rb
adiwg-mdtranslator-2.18.0rc8 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_nominalResolution.rb
adiwg-mdtranslator-2.18.0rc7 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_nominalResolution.rb