Sha256: bd8aad07df05b38326d357fdfe2a52920663d79fe6a1c172679ebc0f8ac05df7
Contents?: true
Size: 1.5 KB
Versions: 38
Compression:
Stored size: 1.5 KB
Contents
# Reader - fgdc to internal data structure # unpack fgdc map projection - robinson # History: # Stan Smith 2018-10-03 refactor mdJson projection object # 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 RobinsonProjection def self.unpack(xParams, hProjection, hResponseObj) # map projection 4.1.2.1.17 (robinson) - Robinson unless xParams.empty? paramCount = 0 # -> ReferenceSystemParameters.projection.longitudeOfProjectionCenter paramCount += ProjectionCommon.unpackLongPC(xParams, hProjection) # -> ReferenceSystemParameters.projection.falseEasting # -> ReferenceSystemParameters.projection.falseNorthing paramCount += ProjectionCommon.unpackFalseNE(xParams, hProjection) # verify parameter count if paramCount == 3 return hProjection else hResponseObj[:readerExecutionMessages] << 'WARNING: FGDC reader: Robinson projection is missing one or more parameters' end end return nil end end end end end end
Version data entries
38 entries across 38 versions & 1 rubygems