Module: ADIWG::Mdtranslator::Writers::MdJson::Georectified

Defined in:
lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_georectifiedRepresentation.rb

Class Method Summary collapse

Class Method Details

.build(hGeoRec) ⇒ Object



16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# File 'lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_georectifiedRepresentation.rb', line 16

def self.build(hGeoRec)

   Jbuilder.new do |json|
      json.scope hGeoRec[:scope]
      json.gridRepresentation Grid.build(hGeoRec[:gridRepresentation]) unless hGeoRec[:gridRepresentation].empty?
      json.checkPointAvailable hGeoRec[:checkPointAvailable]
      json.checkPointDescription hGeoRec[:checkPointDescription]
      json.cornerPoints hGeoRec[:cornerPoints] unless hGeoRec[:cornerPoints].empty?
      json.centerPoint hGeoRec[:centerPoint] unless hGeoRec[:centerPoint].empty?
      json.pointInPixel hGeoRec[:pointInPixel]
      json.transformationDimensionDescription hGeoRec[:transformationDimensionDescription]
      json.transformationDimensionMapping hGeoRec[:transformationDimensionMapping]
   end

end