Sha256: 2bba5dc0488cb18ac32cc8f8f596e9b7c387ccbf4355ddf4b37c585e3b507ef0
Contents?: true
Size: 1.48 KB
Versions: 4
Compression:
Stored size: 1.48 KB
Contents
# Reader - fgdc to internal data structure # unpack fgdc map grid coordinate system # History: # Stan Smith 2017-10-04 original script require 'nokogiri' module ADIWG module Mdtranslator module Readers module Fgdc module MapLocalPlanar def self.unpack(xMapLocal, hResponseObj) # instance classes needed in script intMetadataClass = InternalMetadata.new hProjection = intMetadataClass.newProjection hProjection[:projection] = 'localPlanar' hProjection[:projectionName] = 'local planar coordinate system' # local planar 4.1.2.3.1 (localpd) - local planar description # -> ReferenceSystemParameters.projection.localPlanarDescription description = xMapLocal.xpath('./localpd').text unless description.empty? hProjection[:localPlanarDescription] = description end # local planar 4.1.2.3.2 (localpgi) - local planar georeference information # -> ReferenceSystemParameters.projection.localPlanarGeoreference georeference = xMapLocal.xpath('./localpgi').text unless georeference.empty? hProjection[:localPlanarGeoreference] = georeference end return hProjection end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems