Sha256: 299f4a2e1bd3d55e7ecc5ff679fe520ed7a8e38c03ac0eb0fbdf3f1f9963d870

Contents?: true

Size: 1.45 KB

Versions: 34

Compression:

Stored size: 1.45 KB

Contents

# ISO <<Class>> Measure
# 19115-2 writer output in XML

# History:
#   Stan Smith 2016-11-22 original script.

module ADIWG
    module Mdtranslator
        module Writers
            module Iso19115_2

                class Measure

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

                    def writeXML(hResolution)

                        # measure
                        type = hResolution[:type]
                        value = hResolution[:value]
                        uom = hResolution[:unitOfMeasure]

                        if type == 'distance'
                            @xml.tag!('gco:Distance', {'uom'=>uom}, value)
                        end
                        if type == 'length'
                            @xml.tag!('gco:Length', {'uom'=>uom}, value)
                        end
                        if type == 'angle'
                            @xml.tag!('gco:Angle', {'uom'=>uom}, value)
                        end
                        if type == 'measure'
                            @xml.tag!('gco:Measure', {'uom'=>uom}, value)
                        end
                        if type == 'scale'
                            @xml.tag!('gco:Scale', {'uom'=>uom}, value)
                        end

                    end # write XML
                end # CI_Telephone class

            end
        end
    end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
adiwg-mdtranslator-2.1.1 lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_measure.rb
adiwg-mdtranslator-2.1.0 lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_measure.rb
adiwg-mdtranslator-2.0.0 lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_measure.rb
adiwg-mdtranslator-2.0.0rc13 lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_measure.rb
adiwg-mdtranslator-2.0.0rc11 lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_measure.rb
adiwg-mdtranslator-2.0.0rc10 lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_measure.rb
adiwg-mdtranslator-2.0.0rc9 lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_measure.rb
adiwg-mdtranslator-2.0.0rc8 lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_measure.rb
adiwg-mdtranslator-2.0.0rc7 lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_measure.rb
adiwg-mdtranslator-2.0.0rc6 lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_measure.rb
adiwg-mdtranslator-2.0.0rc5 lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_measure.rb
adiwg-mdtranslator-2.0.0rc4 lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_measure.rb
adiwg-mdtranslator-2.0.0rc3 lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_measure.rb
adiwg-mdtranslator-2.0.0rc2 lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_measure.rb