class ADIWG::Mdtranslator::Writers::Html::Html_VerticalDatumParameters
Public Class Methods
new(html)
click to toggle source
# File lib/adiwg/mdtranslator/writers/html/sections/html_verticalDatumParameters.rb, line 17 def initialize(html) @html = html end
Public Instance Methods
writeHtml(hDatum)
click to toggle source
# File lib/adiwg/mdtranslator/writers/html/sections/html_verticalDatumParameters.rb, line 21 def writeHtml(hDatum) # classes used identifierClass = Html_Identifier.new(@html) # vertical datum - is depth system {Boolean} if hDatum[:encodingMethod] @html.text!('Depth System') else @html.text!('Altitude System') end @html.br # vertical datum parameters - vertical datum identifier unless hDatum[:datumIdentifier].empty? @html.details do @html.summary('Vertical Datum Identifier', {'id' => 'datum-identifier', 'class' => 'h5'}) @html.section(:class => 'block') do identifierClass.writeHtml(hDatum[:datumIdentifier]) end end end # vertical datum - encoding method unless hDatum[:encodingMethod].nil? @html.em('Encoding Method: ') @html.text!(hDatum[:encodingMethod]) @html.br end # vertical datum - vertical resolution unless hDatum[:verticalResolution].nil? @html.em('Vertical Resolution: ') @html.text!(hDatum[:verticalResolution].to_s) @html.br end # vertical datum - unit of measure unless hDatum[:unitOfMeasure].nil? @html.em('Unit of Measure: ') @html.text!(hDatum[:unitOfMeasure]) end end