Class: ADIWG::Mdtranslator::Writers::Simple_html::Html_GeorectifiedRepresentation
- Inherits:
-
Object
- Object
- ADIWG::Mdtranslator::Writers::Simple_html::Html_GeorectifiedRepresentation
- Defined in:
- lib/adiwg/mdtranslator/writers/simple_html/sections/html_georectifiedRepresentation.rb
Instance Method Summary collapse
-
#initialize(html) ⇒ Html_GeorectifiedRepresentation
constructor
A new instance of Html_GeorectifiedRepresentation.
- #writeHtml(hGeorectified) ⇒ Object
Constructor Details
#initialize(html) ⇒ Html_GeorectifiedRepresentation
Returns a new instance of Html_GeorectifiedRepresentation.
17 18 19 |
# File 'lib/adiwg/mdtranslator/writers/simple_html/sections/html_georectifiedRepresentation.rb', line 17 def initialize(html) @html = html end |
Instance Method Details
#writeHtml(hGeorectified) ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 |
# File 'lib/adiwg/mdtranslator/writers/simple_html/sections/html_georectifiedRepresentation.rb', line 21 def writeHtml(hGeorectified) # classes used gridClass = Html_GridRepresentation.new(@html) scopeClass = Html_Scope.new(@html) # georectified representation - scope hGeorectified[:scope].each do |scope| @html.div do @html.div('Scope ', 'class' => 'h5') @html.div(:class => 'block') do scopeClass.writeHtml(hGeorectified[:scope]) end end end # georectified representation - grid {gridRepresentation} unless hGeorectified[:gridRepresentation].empty? @html.div do @html.div('Grid Information ', 'class' => 'h5') @html.div(:class => 'block') do gridClass.writeHtml(hGeorectified[:gridRepresentation]) end end end # georectified representation - check point available {Boolean} @html.em('Check Point Available: ') @html.text!(hGeorectified[:checkPointAvailable].to_s) @html.br # georectified representation - check point description unless hGeorectified[:checkPointDescription].nil? @html.em('Check Point Description: ') @html.div(:class => 'block') do @html.text!(hGeorectified[:checkPointDescription]) end end # georectified representation - corner points [ 4 coordinates ] unless hGeorectified[:cornerPoints].nil? @html.em('Corner Points: ') @html.div(:class => 'block') do @html.text!(hGeorectified[:cornerPoints].to_s) end end # georectified representation - center point [ 1 coordinate ] unless hGeorectified[:centerPoint].nil? @html.em('Center Point: ') @html.div(:class => 'block') do @html.text!(hGeorectified[:centerPoint].to_s) end end # georectified representation - point in pixel unless hGeorectified[:pointInPixel].nil? @html.em('Point in Pixel: ') @html.text!(hGeorectified[:pointInPixel].to_s) @html.br end # georectified representation - transformation dimension description unless hGeorectified[:transformationDimensionDescription].nil? @html.em('Transformation Dimension Description: ') @html.div(:class => 'block') do @html.text!(hGeorectified[:transformationDimensionDescription]) end end # georectified representation - transformation dimension mapping unless hGeorectified[:transformationDimensionMapping].nil? @html.em('Transformation Dimension Mapping: ') @html.div(:class => 'block') do @html.text!(hGeorectified[:transformationDimensionMapping]) end end end |