Sha256: 508fd8de84a774dc43031deefcc5854ede2456dd15f6c510e26fc3d554c5596f

Contents?: true

Size: 1.75 KB

Versions: 14

Compression:

Stored size: 1.75 KB

Contents

# HTML writer
# vertical extent

# History:
#  Stan Smith 2017-04-04 refactored for mdTranslator 2.0
# 	Stan Smith 2015-04-03 original script

require_relative 'html_spatialReference'

module ADIWG
   module Mdtranslator
      module Writers
         module Simple_html

            class Html_VerticalExtent

               def initialize(html)
                  @html = html
               end

               def writeHtml(hExtent)

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

                  # vertical extent - description
                  unless hExtent[:description].nil?
                     @html.em('Description: ')
                     @html.div(: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.div(:class => 'block') do
                        referenceClass.writeHtml(hExtent[:crsId])
                     end
                  end

               end # writeHtml
            end # Html_VerticalExtent

         end
      end
   end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
adiwg-mdtranslator-2.19.0.pre.beta.31 lib/adiwg/mdtranslator/writers/simple_html/sections/html_verticalExtent.rb
adiwg-mdtranslator-2.19.0.pre.beta.30 lib/adiwg/mdtranslator/writers/simple_html/sections/html_verticalExtent.rb
adiwg-mdtranslator-2.19.0.pre.beta.29 lib/adiwg/mdtranslator/writers/simple_html/sections/html_verticalExtent.rb
adiwg-mdtranslator-2.19.0.pre.beta.28 lib/adiwg/mdtranslator/writers/simple_html/sections/html_verticalExtent.rb
adiwg-mdtranslator-2.19.0.pre.beta.27 lib/adiwg/mdtranslator/writers/simple_html/sections/html_verticalExtent.rb
adiwg-mdtranslator-2.19.0.pre.beta.26 lib/adiwg/mdtranslator/writers/simple_html/sections/html_verticalExtent.rb
adiwg-mdtranslator-2.19.0.pre.beta.13 lib/adiwg/mdtranslator/writers/simple_html/sections/html_verticalExtent.rb
adiwg-mdtranslator-2.19.0.pre.beta.12 lib/adiwg/mdtranslator/writers/simple_html/sections/html_verticalExtent.rb
adiwg-mdtranslator-2.19.0.pre.beta.11 lib/adiwg/mdtranslator/writers/simple_html/sections/html_verticalExtent.rb
adiwg-mdtranslator-2.19.0.pre.beta.10 lib/adiwg/mdtranslator/writers/simple_html/sections/html_verticalExtent.rb
adiwg-mdtranslator-2.19.0.pre.beta.9 lib/adiwg/mdtranslator/writers/simple_html/sections/html_verticalExtent.rb
adiwg-mdtranslator-2.19.0.pre.beta.8 lib/adiwg/mdtranslator/writers/simple_html/sections/html_verticalExtent.rb
adiwg-mdtranslator-2.19.0.pre.beta.7 lib/adiwg/mdtranslator/writers/simple_html/sections/html_verticalExtent.rb
adiwg-mdtranslator-2.18.4 lib/adiwg/mdtranslator/writers/simple_html/sections/html_verticalExtent.rb