Module: ADIWG::Mdtranslator::Readers::Fgdc::MapGridOther

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

Class Method Summary collapse

Class Method Details

.unpack(other, hProjection) ⇒ Object



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

def self.unpack(other, hProjection)

   # grid system 4.1.2.2.6 (othergrd) - other coordinate system {text}
   # -> ReferenceSystemParameters.projection.gridIdentifier.description

   hProjectionId = hProjection[:projectionIdentifier]
   hGridSystemId = hProjection[:gridIdentifier]

   hGridSystemId[:identifier] = 'other'
   hGridSystemId[:name] = 'Other Grid Coordinate System' if hGridSystemId[:name].nil?
   hGridSystemId[:description] = other

   hProjectionId[:identifier] = 'other'
   hProjectionId[:name] = 'Other Projection'
   hProjectionId[:description] = 'for description see grid system description'

   return hProjection

end