Sha256: a6c8c6de128a353ee1e8f1edf385163f24aa826db12d973db80c0fb667770c9e
Contents?: true
Size: 1.51 KB
Versions: 7
Compression:
Stored size: 1.51 KB
Contents
# Reader - fgdc to internal data structure # unpack fgdc map projection - van der grinten # History: # Stan Smith 2017-10-18 original script require 'nokogiri' require 'adiwg/mdtranslator/internal/internal_metadata_obj' module ADIWG module Mdtranslator module Readers module Fgdc module VanDerGrintenProjection def self.unpack(xParams, hProjection, hResponseObj) # map projection 4.1.2.1.22 (vdgrin) - van der Grinten unless xParams.empty? paramCount = 0 hProjection[:projection] = 'grinten' hProjection[:projectionName] = 'van der Grinten' # -> ReferenceSystemParameters.projection.longitudeOfCentralMeridian paramCount += ProjectionCommon.unpackLongCM(xParams, hProjection, hResponseObj) # -> ReferenceSystemParameters.projection.falseEasting # -> ReferenceSystemParameters.projection.falseNorthing paramCount += ProjectionCommon.unpackFalseNE(xParams, hProjection, hResponseObj) if paramCount == 3 return hProjection else hResponseObj[:readerExecutionMessages] << 'WARNING: FGDC reader: Van Der Grinten 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