Sha256: 112e0fbe0accf2d0be4d7fa85cb3aeed2ab1e86149f8798538b3b42945ab64d1
Contents?: true
Size: 1.78 KB
Versions: 7
Compression:
Stored size: 1.78 KB
Contents
# Reader - fgdc to internal data structure # unpack fgdc map projection - space oblique # History: # Stan Smith 2017-10-18 original script require 'nokogiri' require 'adiwg/mdtranslator/internal/internal_metadata_obj' require_relative 'projection_common' module ADIWG module Mdtranslator module Readers module Fgdc module SpaceObliqueProjection def self.unpack(xParams, hProjection, hResponseObj) # map projection 4.1.2.1.19 (spaceobq) - Space Oblique Mercator (Landsat) unless xParams.empty? paramCount = 0 hProjection[:projection] = 'spaceOblique' hProjection[:projectionName] = 'Space Oblique Mercator (Landsat)' # -> ReferenceSystemParameters.projection.landsatNumber paramCount += ProjectionCommon.unpackLandSat(xParams, hProjection, hResponseObj) # -> ReferenceSystemParameters.projection.landsatPath paramCount += ProjectionCommon.unpackLandSatPath(xParams, hProjection, hResponseObj) # -> ReferenceSystemParameters.projection.falseEasting # -> ReferenceSystemParameters.projection.falseNorthing paramCount += ProjectionCommon.unpackFalseNE(xParams, hProjection, hResponseObj) # verify parameter count if paramCount == 4 return hProjection else hResponseObj[:readerExecutionMessages] << 'WARNING: Space Oblique projection is missing one or more parameters' end end return nil end end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems