Sha256: 4a3ab866170ad96192dee3b598a5a0332586becb48b20c98a0c5468de0efcfc5

Contents?: true

Size: 1.93 KB

Versions: 51

Compression:

Stored size: 1.93 KB

Contents

# HTML writer
# bounding box

# History:
#  Stan Smith 2017-04-06 original script

module ADIWG
   module Mdtranslator
      module Writers
         module Html

            class Html_BoundingBox

               def initialize(html)
                  @html = html
               end

               def writeHtml(hBox)

                  # bounding box - edges
                  unless hBox[:westLongitude].nil?
                     @html.em('West Longitude:')
                     @html.text!(hBox[:westLongitude].to_s)
                     @html.br
                  end

                  unless hBox[:eastLongitude].nil?
                     @html.em('East Longitude:')
                     @html.text!(hBox[:eastLongitude].to_s)
                     @html.br
                  end

                  unless hBox[:southLatitude].nil?
                     @html.em('South Latitude:')
                     @html.text!(hBox[:southLatitude].to_s)
                     @html.br
                  end

                  unless hBox[:northLatitude].nil?
                     @html.em('North Latitude:')
                     @html.text!(hBox[:northLatitude].to_s)
                     @html.br
                  end

                  unless hBox[:minimumAltitude].nil?
                     @html.em('Minimum Altitude:')
                     @html.text!(hBox[:minimumAltitude].to_s)
                     @html.br
                  end

                  unless hBox[:maximumAltitude].nil?
                     @html.em('Maximum Altitude:')
                     @html.text!(hBox[:maximumAltitude].to_s)
                     @html.br
                  end

                  unless hBox[:unitsOfAltitude].nil?
                     @html.em('Altitude Units of Measure:')
                     @html.text!(hBox[:unitsOfAltitude].to_s)
                     @html.br
                  end

               end # writeHtml
            end # Html_BoundingBox

         end
      end
   end
end

Version data entries

51 entries across 51 versions & 1 rubygems

Version Path
adiwg-mdtranslator-2.19.0.pre.beta.31 lib/adiwg/mdtranslator/writers/html/sections/html_boundingBox.rb
adiwg-mdtranslator-2.19.0.pre.beta.30 lib/adiwg/mdtranslator/writers/html/sections/html_boundingBox.rb
adiwg-mdtranslator-2.19.0.pre.beta.29 lib/adiwg/mdtranslator/writers/html/sections/html_boundingBox.rb
adiwg-mdtranslator-2.19.0.pre.beta.28 lib/adiwg/mdtranslator/writers/html/sections/html_boundingBox.rb
adiwg-mdtranslator-2.19.0.pre.beta.27 lib/adiwg/mdtranslator/writers/html/sections/html_boundingBox.rb
adiwg-mdtranslator-2.19.0.pre.beta.26 lib/adiwg/mdtranslator/writers/html/sections/html_boundingBox.rb
adiwg-mdtranslator-2.19.0.pre.beta.13 lib/adiwg/mdtranslator/writers/html/sections/html_boundingBox.rb
adiwg-mdtranslator-2.19.0.pre.beta.12 lib/adiwg/mdtranslator/writers/html/sections/html_boundingBox.rb
adiwg-mdtranslator-2.19.0.pre.beta.11 lib/adiwg/mdtranslator/writers/html/sections/html_boundingBox.rb
adiwg-mdtranslator-2.19.0.pre.beta.10 lib/adiwg/mdtranslator/writers/html/sections/html_boundingBox.rb
adiwg-mdtranslator-2.19.0.pre.beta.9 lib/adiwg/mdtranslator/writers/html/sections/html_boundingBox.rb
adiwg-mdtranslator-2.19.0.pre.beta.8 lib/adiwg/mdtranslator/writers/html/sections/html_boundingBox.rb
adiwg-mdtranslator-2.19.0.pre.beta.7 lib/adiwg/mdtranslator/writers/html/sections/html_boundingBox.rb
adiwg-mdtranslator-2.18.4 lib/adiwg/mdtranslator/writers/html/sections/html_boundingBox.rb
adiwg-mdtranslator-2.18.2 lib/adiwg/mdtranslator/writers/html/sections/html_boundingBox.rb
adiwg-mdtranslator-2.18.1 lib/adiwg/mdtranslator/writers/html/sections/html_boundingBox.rb
adiwg-mdtranslator-2.18.0 lib/adiwg/mdtranslator/writers/html/sections/html_boundingBox.rb
adiwg-mdtranslator-2.18.0rc9 lib/adiwg/mdtranslator/writers/html/sections/html_boundingBox.rb
adiwg-mdtranslator-2.18.0rc8 lib/adiwg/mdtranslator/writers/html/sections/html_boundingBox.rb
adiwg-mdtranslator-2.18.0rc7 lib/adiwg/mdtranslator/writers/html/sections/html_boundingBox.rb