Sha256: 86f6a3db04128ac5df66d27619f1c001f7a36e34556dc11556c3f6d6ff3bf4a1

Contents?: true

Size: 968 Bytes

Versions: 16

Compression:

Stored size: 968 Bytes

Contents

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

# History:
# 	Stan Smith 2015-08-27 copied from 19110 writer

module ADIWG
    module Mdtranslator
        module Writers
            module Iso19115_2

                class UnitDefinition

                    def initialize(xml, responseObj)
                        @xml = xml
                        @responseObj = responseObj
                    end

                    def writeXML(unit)

                        # create an identity for the unit
                        @responseObj[:writerMissingIdCount] = @responseObj[:writerMissingIdCount].succ
                        unitID = 'unit' + @responseObj[:writerMissingIdCount]
                        @xml.tag!('gml:UnitDefinition', {'gml:id' => unitID}) do
                            @xml.tag!('gml:identifier', {'codeSpace' => ''}, unit)
                        end

                    end

                end

            end
        end
    end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
adiwg-mdtranslator-1.4.0 lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_definitionUnit.rb
adiwg-mdtranslator-1.4.0.beta14 lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_definitionUnit.rb
adiwg-mdtranslator-1.4.0.beta13 lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_definitionUnit.rb
adiwg-mdtranslator-1.4.0.beta12 lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_definitionUnit.rb
adiwg-mdtranslator-1.4.0.beta11 lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_definitionUnit.rb
adiwg-mdtranslator-1.4.0.beta10 lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_definitionUnit.rb
adiwg-mdtranslator-1.4.0.beta9 lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_definitionUnit.rb
adiwg-mdtranslator-1.4.0.beta8 lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_definitionUnit.rb
adiwg-mdtranslator-1.4.0.beta7 lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_definitionUnit.rb
adiwg-mdtranslator-1.4.0.beta6 lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_definitionUnit.rb
adiwg-mdtranslator-1.4.0.beta5 lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_definitionUnit.rb
adiwg-mdtranslator-1.4.0.beta4 lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_definitionUnit.rb
adiwg-mdtranslator-1.4.0.beta3 lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_definitionUnit.rb
adiwg-mdtranslator-1.4.0.beta2 lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_definitionUnit.rb
adiwg-mdtranslator-1.4.0.beta1 lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_definitionUnit.rb
adiwg-mdtranslator-1.3.0 lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_definitionUnit.rb