module ADIWG::Mdtranslator::Writers::MdJson::SpatialRepresentation

Public Class Methods

build(hSystem) click to toggle source
# File lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_spatialRepresentation.rb, line 19
def self.build(hSystem)

   Jbuilder.new do |json|
      json.gridRepresentation Grid.build(hSystem[:gridRepresentation]) unless hSystem[:gridRepresentation].empty?
      json.vectorRepresentation Vector.build(hSystem[:vectorRepresentation]) unless hSystem[:vectorRepresentation].empty?
      json.georectifiedRepresentation Georectified.build(hSystem[:georectifiedRepresentation]) unless hSystem[:georectifiedRepresentation].empty?
      json.georeferenceableRepresentation Georeferenceable.build(hSystem[:georeferenceableRepresentation]) unless hSystem[:georeferenceableRepresentation].empty?
   end

end