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