Class: ADIWG::Mdtranslator::Writers::Simple_html::Html_GeoreferenceableRepresentation
- Inherits:
-
Object
- Object
- ADIWG::Mdtranslator::Writers::Simple_html::Html_GeoreferenceableRepresentation
- Defined in:
- lib/adiwg/mdtranslator/writers/simple_html/sections/html_georeferenceableRepresentation.rb
Instance Method Summary collapse
-
#initialize(html) ⇒ Html_GeoreferenceableRepresentation
constructor
A new instance of Html_GeoreferenceableRepresentation.
- #writeHtml(hGeoreferenceable) ⇒ Object
Constructor Details
#initialize(html) ⇒ Html_GeoreferenceableRepresentation
Returns a new instance of Html_GeoreferenceableRepresentation.
18 19 20 |
# File 'lib/adiwg/mdtranslator/writers/simple_html/sections/html_georeferenceableRepresentation.rb', line 18 def initialize(html) @html = html end |
Instance Method Details
#writeHtml(hGeoreferenceable) ⇒ Object
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 |
# File 'lib/adiwg/mdtranslator/writers/simple_html/sections/html_georeferenceableRepresentation.rb', line 22 def writeHtml(hGeoreferenceable) # classes used gridClass = Html_GridRepresentation.new(@html) citationClass = Html_Citation.new(@html) scopeClass = Html_Scope.new(@html) # georeferenceable representation - scope hGeoreferenceable[:scope].each do |scope| @html.div do @html.div('Scope ', 'class' => 'h5') @html.div(:class => 'block') do scopeClass.writeHtml(hGeoreferenceable[:scope]) end end end # georeferenceable representation - grid {gridRepresentation} unless hGeoreferenceable[:gridRepresentation].empty? @html.div do @html.div('Grid Information ', 'class' => 'h5') @html.div(:class => 'block') do gridClass.writeHtml(hGeoreferenceable[:gridRepresentation]) end end end # georeferenceable representation - control point available {Boolean} @html.em('Control Point Available: ') @html.text!(hGeoreferenceable[:controlPointAvailable].to_s) @html.br # georeferenceable representation - orientation parameter available {Boolean} @html.em('Orientation Parameter Available: ') @html.text!(hGeoreferenceable[:orientationParameterAvailable].to_s) @html.br # georeferenceable representation - orientation parameter description unless hGeoreferenceable[:orientationParameterDescription].nil? @html.em('Orientation Parameter Description: ') @html.div(:class => 'block') do @html.text!(hGeoreferenceable[:orientationParameterDescription]) end end # georeferenceable representation - georeferenced parameter unless hGeoreferenceable[:georeferencedParameter].nil? @html.em('Georeferenced Parameter: ') @html.text!(hGeoreferenceable[:georeferencedParameter]) @html.br end # georeferenceable representation - parameter citation {citation} hGeoreferenceable[:parameterCitation].each do |hCitation| @html.div do @html.div('Parameter Citation ', 'class' => 'h5') @html.div(:class => 'block') do citationClass.writeHtml(hCitation) end end end end |