Sha256: b98b41a15fe8fec81638d7bb2038ee1d96c5d55f70d61c626bb785ecd2542ec2

Contents?: true

Size: 1.87 KB

Versions: 20

Compression:

Stored size: 1.87 KB

Contents

# HTML writer
# spatial reference system

# History:
# 	Stan Smith 2015-03-25 original script

module ADIWG
    module Mdtranslator
        module Writers
            module Html

                class MdHtmlSpatialReferenceSystem
                    def initialize(html)
                        @html = html
                    end

                    def writeHtml(hSpaceRef)

                        # spatial reference system - names
                        aNames = hSpaceRef[:sRNames]
                        if !aNames.empty?
                            aNames.each do |sRName|
                                @html.em('Spatial reference system name: ')
                                @html.text!(sRName)
                                @html.br
                            end
                        end

                        # spatial reference system - EPSGs
                        # European Petroleum Survey Group - EPSG
                        aEPSG = hSpaceRef[:sREPSGs]
                        if !aEPSG.empty?
                            aEPSG.each do |nREPSG|
                                @html.em('EPSG Geodetic Parameter Dataset: ')
                                @html.text!(nREPSG.to_s)
                                @html.br
                            end
                        end

                        # spatial reference system - well know text
                        aWKT = hSpaceRef[:sRWKTs]
                        if !aWKT.empty?
                            aWKT.each do |sRWKT|
                                @html.em('Well-Know-Text: ')
                                @html.section(:class=>'block') do
                                    @html.text!(sRWKT)
                                end
                            end
                        end

                    end # writeHtml

                end # class

            end
        end
    end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
adiwg-mdtranslator-1.4.0 lib/adiwg/mdtranslator/writers/html/sections/html_spatialReferenceSystem.rb
adiwg-mdtranslator-1.4.0.beta14 lib/adiwg/mdtranslator/writers/html/sections/html_spatialReferenceSystem.rb
adiwg-mdtranslator-1.4.0.beta13 lib/adiwg/mdtranslator/writers/html/sections/html_spatialReferenceSystem.rb
adiwg-mdtranslator-1.4.0.beta12 lib/adiwg/mdtranslator/writers/html/sections/html_spatialReferenceSystem.rb
adiwg-mdtranslator-1.4.0.beta11 lib/adiwg/mdtranslator/writers/html/sections/html_spatialReferenceSystem.rb
adiwg-mdtranslator-1.4.0.beta10 lib/adiwg/mdtranslator/writers/html/sections/html_spatialReferenceSystem.rb
adiwg-mdtranslator-1.4.0.beta9 lib/adiwg/mdtranslator/writers/html/sections/html_spatialReferenceSystem.rb
adiwg-mdtranslator-1.4.0.beta8 lib/adiwg/mdtranslator/writers/html/sections/html_spatialReferenceSystem.rb
adiwg-mdtranslator-1.4.0.beta7 lib/adiwg/mdtranslator/writers/html/sections/html_spatialReferenceSystem.rb
adiwg-mdtranslator-1.4.0.beta6 lib/adiwg/mdtranslator/writers/html/sections/html_spatialReferenceSystem.rb
adiwg-mdtranslator-1.4.0.beta5 lib/adiwg/mdtranslator/writers/html/sections/html_spatialReferenceSystem.rb
adiwg-mdtranslator-1.4.0.beta4 lib/adiwg/mdtranslator/writers/html/sections/html_spatialReferenceSystem.rb
adiwg-mdtranslator-1.4.0.beta3 lib/adiwg/mdtranslator/writers/html/sections/html_spatialReferenceSystem.rb
adiwg-mdtranslator-1.4.0.beta2 lib/adiwg/mdtranslator/writers/html/sections/html_spatialReferenceSystem.rb
adiwg-mdtranslator-1.4.0.beta1 lib/adiwg/mdtranslator/writers/html/sections/html_spatialReferenceSystem.rb
adiwg-mdtranslator-1.3.0 lib/adiwg/mdtranslator/writers/html/sections/html_spatialReferenceSystem.rb
adiwg-mdtranslator-1.2.1 lib/adiwg/mdtranslator/writers/html/sections/html_spatialReferenceSystem.rb
adiwg-mdtranslator-1.2.0 lib/adiwg/mdtranslator/writers/html/sections/html_spatialReferenceSystem.rb
adiwg-mdtranslator-1.1.1 lib/adiwg/mdtranslator/writers/html/sections/html_spatialReferenceSystem.rb
adiwg-mdtranslator-1.1.0 lib/adiwg/mdtranslator/writers/html/sections/html_spatialReferenceSystem.rb