Module: ADIWG::Mdtranslator::Readers::Fgdc::SpatialReference

Defined in:
lib/adiwg/mdtranslator/readers/fgdc/modules/module_spatialReference.rb

Class Method Summary collapse

Class Method Details

.unpack(xSpatialRef, hResourceInfo, hResponseObj) ⇒ Object



19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# File 'lib/adiwg/mdtranslator/readers/fgdc/modules/module_spatialReference.rb', line 19

def self.unpack(xSpatialRef, hResourceInfo, hResponseObj)

   # spatial reference 4.1 (horizsys) - horizontal coordinate system
   xHorizontalRef = xSpatialRef.xpath('./horizsys')
   unless xHorizontalRef.empty?
      HorizontalReference.unpack(xHorizontalRef, hResourceInfo, hResponseObj)
   end

   # spatial reference 4.2 (vertdef) - vertical coordinate system
   xVerticalRef = xSpatialRef.xpath('./vertdef')
   unless xVerticalRef.empty?
      VerticalReference.unpack(xVerticalRef, hResourceInfo, hResponseObj)
   end

   return hResourceInfo

end