Sha256: 6e6c2efc158c693615a2602bcff0f0aeba0540b380cb4888e19492ca4fabfcd3
Contents?: true
Size: 1.43 KB
Versions: 54
Compression:
Stored size: 1.43 KB
Contents
# Reader - fgdc to internal data structure # unpack fgdc vertical data reference # History: # Stan Smith 2017-10-02 original script require 'nokogiri' require 'adiwg/mdtranslator/internal/internal_metadata_obj' require_relative 'module_verticalAltitude' require_relative 'module_verticalDepth' module ADIWG module Mdtranslator module Readers module Fgdc module VerticalReference def self.unpack(xVerticalRef, hResourceInfo, hResponseObj) # spatial reference 4.2.1 (altsys) - altitude system definition xAltSys = xVerticalRef.xpath('./altsys') unless xAltSys.empty? hRefSystem = VerticalAltitude.unpack(xAltSys, hResponseObj) unless hRefSystem.nil? hResourceInfo[:spatialReferenceSystems] << hRefSystem end end # spatial reference 4.2.2 (depthsys) - depth system definition xDepthSys = xVerticalRef.xpath('./depthsys') unless xDepthSys.empty? hRefSystem = VerticalDepth.unpack(xDepthSys, hResponseObj) unless hRefSystem.nil? hResourceInfo[:spatialReferenceSystems] << hRefSystem end end return hResourceInfo end end end end end end
Version data entries
54 entries across 54 versions & 1 rubygems