class ADIWG::Mdtranslator::Writers::Html::Html_VerticalExtent

Public Class Methods

new(html) click to toggle source
# File lib/adiwg/mdtranslator/writers/html/sections/html_verticalExtent.rb, line 17
def initialize(html)
   @html = html
end

Public Instance Methods

writeHtml(hExtent) click to toggle source
# File lib/adiwg/mdtranslator/writers/html/sections/html_verticalExtent.rb, line 21
def writeHtml(hExtent)

   # classes used
   referenceClass = Html_SpatialReference.new(@html)

   # vertical extent - description
   unless hExtent[:description].nil?
      @html.em('Description: ')
      @html.section(:class => 'block') do
         @html.text!(hExtent[:description])
      end
   end

   # vertical extent - min value
   unless hExtent[:minValue].nil?
      @html.em('Minimum Value: ')
      @html.text!(hExtent[:minValue].to_s)
      @html.br
   end

   # vertical extent - max value
   unless hExtent[:maxValue].nil?
      @html.em('Maximum Value: ')
      @html.text!(hExtent[:maxValue].to_s)
      @html.br
   end

   # vertical extent - CRS ID {spatialReference}
   unless hExtent[:crsId].empty?
      @html.em('Reference System: ')
      @html.section(:class => 'block') do
         referenceClass.writeHtml(hExtent[:crsId])
      end
   end

end