module ADIWG::Mdtranslator::Writers::MdJson::Georeferenceable

Public Class Methods

build(hGeoRef) click to toggle source
# File lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_georeferenceableRepresentation.rb, line 17
def self.build(hGeoRef)

   @Namespace = ADIWG::Mdtranslator::Writers::MdJson

   Jbuilder.new do |json|
      json.scope hGeoRef[:scope]
      json.gridRepresentation Grid.build(hGeoRef[:gridRepresentation]) unless hGeoRef[:gridRepresentation].empty?
      json.controlPointAvailable hGeoRef[:controlPointAvailable]
      json.orientationParameterAvailable hGeoRef[:orientationParameterAvailable]
      json.orientationParameterDescription hGeoRef[:orientationParameterDescription]
      json.georeferencedParameter hGeoRef[:georeferencedParameter]
      json.parameterCitation @Namespace.json_map(hGeoRef[:parameterCitation], Citation)
   end

end