Sha256: ca58b135dce1f8b1e9c8a0bb4b719683585510c1fe09a286d4034db979fb23b6

Contents?: true

Size: 942 Bytes

Versions: 5

Compression:

Stored size: 942 Bytes

Contents

# mdJson 2.0 writer - spatial reference system ellipsoid parameters

# History:
#   Stan Smith 2017-10-24 original script

require 'jbuilder'
require_relative 'mdJson_identifier'

module ADIWG
   module Mdtranslator
      module Writers
         module MdJson

            module EllipsoidParameters

               def self.build(hEllipsoid)

                  Jbuilder.new do |json|
                     json.ellipsoidIdentifier Identifier.build(hEllipsoid[:ellipsoidIdentifier]) unless hEllipsoid[:ellipsoidIdentifier].empty?
                     json.ellipsoidName hEllipsoid[:ellipsoidName]
                     json.semiMajorAxis hEllipsoid[:semiMajorAxis]
                     json.axisUnits hEllipsoid[:axisUnits]
                     json.denominatorOfFlatteningRatio hEllipsoid[:denominatorOfFlatteningRatio]
                  end

               end # build
            end # EllipsoidParameters

         end
      end
   end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
adiwg-mdtranslator-2.7.0 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_ellipsoidParameters.rb
adiwg-mdtranslator-2.6.1 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_ellipsoidParameters.rb
adiwg-mdtranslator-2.6.0 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_ellipsoidParameters.rb
adiwg-mdtranslator-2.5.0 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_ellipsoidParameters.rb
adiwg-mdtranslator-2.4.0 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_ellipsoidParameters.rb