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.12.0 lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_measure.rb
adiwg-mdtranslator-2.12.0.pre lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_measure.rb
adiwg-mdtranslator-2.10.0 lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_measure.rb
adiwg-mdtranslator-2.9.2 lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_measure.rb
adiwg-mdtranslator-2.9.1 lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_measure.rb
adiwg-mdtranslator-2.9.0 lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_measure.rb
adiwg-mdtranslator-2.8.0 lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_measure.rb
adiwg-mdtranslator-2.7.0 lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_measure.rb
adiwg-mdtranslator-2.6.1 lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_measure.rb
adiwg-mdtranslator-2.6.0 lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_measure.rb
adiwg-mdtranslator-2.5.0 lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_measure.rb
adiwg-mdtranslator-2.4.0 lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_measure.rb
adiwg-mdtranslator-2.3.5 lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_measure.rb
adiwg-mdtranslator-2.3.4 lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_measure.rb
adiwg-mdtranslator-2.3.3 lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_measure.rb
adiwg-mdtranslator-2.3.2 lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_measure.rb
adiwg-mdtranslator-2.3.1 lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_measure.rb
adiwg-mdtranslator-2.3.0 lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_measure.rb
adiwg-mdtranslator-2.2.0 lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_measure.rb
adiwg-mdtranslator-2.1.2 lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_measure.rb