Sha256: d0ed8b3c960c84666334b5881f27f18d6334a020d02b50e7f2a714fbbb7a79fb

Contents?: true

Size: 1.98 KB

Versions: 11

Compression:

Stored size: 1.98 KB

Contents

# ISO <<Class>> MD_BrowseGraphic
# writer output in XML

# History:
# 	Stan Smith 2013-10-17 original script
#   Stan Smith 2014-12-15 refactored to handle namespacing readers and writers

module ADIWG
    module Mdtranslator
        module Writers
            module Iso

                class MD_BrowseGraphic

                    def initialize(xml)
                        @xml = xml
                    end

                    def writeXML(graphic)

                        @xml.tag!('gmd:MD_BrowseGraphic') do

                            # browse graphic - file name - required
                            s = graphic[:bGName]
                            if !s.nil?
                                @xml.tag!('gmd:fileName') do
                                    @xml.tag!('gco:CharacterString', s)
                                end
                            elsif $showAllTags
                                @xml.tag!('gmd:fileName')
                            end

                            # browse graphic - file description
                            s = graphic[:bGDescription]
                            if !s.nil?
                                @xml.tag!('gmd:fileDescription') do
                                    @xml.tag!('gco:CharacterString', s)
                                end
                            elsif $showAllTags
                                @xml.tag!('gmd:fileDescription')
                            end

                            # browse graphic - file type
                            s = graphic[:bGType]
                            if !s.nil?
                                @xml.tag!('gmd:fileType') do
                                    @xml.tag!('gco:CharacterString', s)
                                end
                            elsif $showAllTags
                                @xml.tag!('gmd:fileType')
                            end

                        end

                    end

                end

            end
        end
    end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
adiwg-mdtranslator-1.2.1 lib/adiwg/mdtranslator/writers/iso/classes/class_browseGraphic.rb
adiwg-mdtranslator-1.2.0 lib/adiwg/mdtranslator/writers/iso/classes/class_browseGraphic.rb
adiwg-mdtranslator-1.1.1 lib/adiwg/mdtranslator/writers/iso/classes/class_browseGraphic.rb
adiwg-mdtranslator-1.1.0 lib/adiwg/mdtranslator/writers/iso/classes/class_browseGraphic.rb
adiwg-mdtranslator-1.0.0 lib/adiwg/mdtranslator/writers/iso/classes/class_browseGraphic.rb
adiwg-mdtranslator-1.0.0rc4 lib/adiwg/mdtranslator/writers/iso/classes/class_browseGraphic.rb
adiwg-mdtranslator-1.0.0rc3 lib/adiwg/mdtranslator/writers/iso/classes/class_browseGraphic.rb
adiwg-mdtranslator-1.0.0rc2 lib/adiwg/mdtranslator/writers/iso/classes/class_browseGraphic.rb
adiwg-mdtranslator-1.0.0rc1 lib/adiwg/mdtranslator/writers/iso/classes/class_browseGraphic.rb
adiwg-mdtranslator-0.12.1 lib/adiwg/mdtranslator/writers/iso/classes/class_browseGraphic.rb
adiwg-mdtranslator-0.12.0 lib/adiwg/mdtranslator/writers/iso/classes/class_browseGraphic.rb