Module: ADIWG::Mdtranslator::Writers::MdJson::Georeferenceable

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

Class Method Summary collapse

Class Method Details

.build(hGeoRef) ⇒ Object



17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# 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