lib/adiwg/mdtranslator/readers/fgdc/modules/mapProjections/projection_robinson.rb in adiwg-mdtranslator-2.13.3 vs lib/adiwg/mdtranslator/readers/fgdc/modules/mapProjections/projection_robinson.rb in adiwg-mdtranslator-2.14.0

- old
+ new

@@ -1,9 +1,10 @@ # 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' @@ -18,24 +19,23 @@ def self.unpack(xParams, hProjection, hResponseObj) # map projection 4.1.2.1.17 (robinson) - Robinson unless xParams.empty? paramCount = 0 - hProjection[:projection] = 'robinson' - hProjection[:projectionName] = 'Robinson' # -> ReferenceSystemParameters.projection.longitudeOfProjectionCenter - paramCount += ProjectionCommon.unpackLongPC(xParams, hProjection, hResponseObj) + paramCount += ProjectionCommon.unpackLongPC(xParams, hProjection) # -> ReferenceSystemParameters.projection.falseEasting # -> ReferenceSystemParameters.projection.falseNorthing - paramCount += ProjectionCommon.unpackFalseNE(xParams, hProjection, hResponseObj) + 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' + hResponseObj[:readerExecutionMessages] << + 'WARNING: FGDC reader: Robinson projection is missing one or more parameters' end end return nil