Sha256: caaf51b20ec2b3e815b4b53377bc87eab627a38dc222fa58fba3219fd55d591a
Contents?: true
Size: 1.92 KB
Versions: 7
Compression:
Stored size: 1.92 KB
Contents
# Reader - fgdc to internal data structure # unpack fgdc map projection - transverse mercator # History: # Stan Smith 2017-10-04 original script require 'nokogiri' require 'adiwg/mdtranslator/internal/internal_metadata_obj' module ADIWG module Mdtranslator module Readers module Fgdc module TransverseMercatorProjection def self.unpack(xParams, hProjection, hResponseObj) # map projection 4.1.2.1.21 (transmer) - Transverse Mercator unless xParams.empty? paramCount = 0 hProjection[:projection] = 'transverseMercator' hProjection[:projectionName] = 'Transverse Mercator' # -> ReferenceSystemParameters.projection.scaleFactorAtCentralMeridian paramCount += ProjectionCommon.unpackSFCM(xParams, hProjection, hResponseObj) # -> ReferenceSystemParameters.projection.longitudeOfCentralMeridian paramCount += ProjectionCommon.unpackLongCM(xParams, hProjection, hResponseObj) # -> ReferenceSystemParameters.projection.latitudeOfProjectionOrigin paramCount += ProjectionCommon.unpackLatPO(xParams, hProjection, hResponseObj) # -> ReferenceSystemParameters.projection.falseEasting # -> ReferenceSystemParameters.projection.falseNorthing paramCount += ProjectionCommon.unpackFalseNE(xParams, hProjection, hResponseObj) if paramCount == 5 return hProjection else hResponseObj[:readerExecutionMessages] << 'WARNING: FGDC reader: Transverse Mercator 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