module ADIWG::Mdtranslator::Writers::MdJson::Georectified

Public Class Methods

build(hGeoRec) click to toggle source
# File lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_georectifiedRepresentation.rb, line 16
def self.build(hGeoRec)

   Jbuilder.new do |json|
      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