module ADIWG::Mdtranslator::Readers::Fgdc::VerticalReference
Public Class Methods
unpack(xVerticalRef, hResourceInfo, hResponseObj)
click to toggle source
# File lib/adiwg/mdtranslator/readers/fgdc/modules/module_verticalDatum.rb, line 19 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