Sha256: eb0aa7db663b68829cee9dee887b8c2be5536f4803251277ffc2383f030a81d6
Contents?: true
Size: 1.49 KB
Versions: 4
Compression:
Stored size: 1.49 KB
Contents
# Reader - fgdc to internal data structure # unpack fgdc map projection - modified stereographic for alaska # History: # Stan Smith 2017-10-16 original script require 'nokogiri' require 'adiwg/mdtranslator/internal/internal_metadata_obj' require_relative 'projection_common' module ADIWG module Mdtranslator module Readers module Fgdc module ModifiedAlaskaProjection def self.unpack(xParams, hProjection, hResponseObj) # map projection 4.1.2.1.11 (modsak) - Modified Stereographic for Alaska unless xParams.empty? paramCount = 0 hProjection[:projection] = 'alaska' hProjection[:projectionName] = 'Modified Stereographic for Alaska' # -> ReferenceSystemParameters.projection.falseEasting # -> ReferenceSystemParameters.projection.falseNorthing paramCount += ProjectionCommon.unpackFalseNE(xParams, hProjection, hResponseObj) # verify parameter count if paramCount == 2 return hProjection else hResponseObj[:readerExecutionMessages] << 'alaska modified stereographic projection is missing one or more parameters' return nil end end return nil end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems