Sha256: cfe6fa274d35eb4409327286bf92a542edf3f4e5e5c403313bbc7aba6fd66bf2

Contents?: true

Size: 1.79 KB

Versions: 10

Compression:

Stored size: 1.79 KB

Contents

require_relative 'module_scope'
require_relative 'module_spatialRepresentation'

module ADIWG
  module Mdtranslator
    module Readers
      module MdJson

        module CoverageResult
          def self.unpack(hResult, responseObj, inContext)

            intMetadataClass = InternalMetadata.new
            intResult = intMetadataClass.newCoverageResult

            # dateTime
            if hResult.has_key?('dateTime')
              intResult[:dateTime] = hResult['dateTime']
            end


            # scope
            if hResult.has_key?('scope')
              intResult[:scope] = Scope.unpack(hResult['scope'], responseObj)
            end


            # spatialRepresentationType
            # https://github.com/ISO-TC211/XML/blob/master/standards.iso.org/iso/19115/resources/Codelists/gml/MD_SpatialRepresentationTypeCode.xml
            if hResult.has_key?('spatialRepresentationType')
              intResult[:spatialRepresentationType] = hResult['spatialRepresentationType']
            end


            # spatialRepresentation
            if hResult.has_key?('spatialRepresentation')
              intResult[:spatialRepresentation] = SpatialRepresentation.unpack(hResult['spatialRepresentation'], responseObj)
            end


            # resultContent
            if hResult.has_key?('resultContent')
              intResult[:resultContent] = hResult['resultContent']
            end


            # resourceFormat
            if hResult.has_key?('resourceFormat')
              intResult[:resourceFormat] = hResult['resourceFormat']
            end


            # resultFile
            resultFile
            if hResult.has_key?('resultFile')
              intResult[:resultFile] = hResult['resultFile']
            end

            return intResult

          end
        end

      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
adiwg-mdtranslator-2.18.4 lib/adiwg/mdtranslator/readers/mdJson/modules/module_coverageResult.rb
adiwg-mdtranslator-2.18.2 lib/adiwg/mdtranslator/readers/mdJson/modules/module_coverageResult.rb
adiwg-mdtranslator-2.18.1 lib/adiwg/mdtranslator/readers/mdJson/modules/module_coverageResult.rb
adiwg-mdtranslator-2.18.0 lib/adiwg/mdtranslator/readers/mdJson/modules/module_coverageResult.rb
adiwg-mdtranslator-2.18.0rc9 lib/adiwg/mdtranslator/readers/mdJson/modules/module_coverageResult.rb
adiwg-mdtranslator-2.18.0rc8 lib/adiwg/mdtranslator/readers/mdJson/modules/module_coverageResult.rb
adiwg-mdtranslator-2.18.0rc7 lib/adiwg/mdtranslator/readers/mdJson/modules/module_coverageResult.rb
adiwg-mdtranslator-2.18.0rc6 lib/adiwg/mdtranslator/readers/mdJson/modules/module_coverageResult.rb
adiwg-mdtranslator-2.18.0rc5 lib/adiwg/mdtranslator/readers/mdJson/modules/module_coverageResult.rb
adiwg-mdtranslator-2.18.0rc4 lib/adiwg/mdtranslator/readers/mdJson/modules/module_coverageResult.rb