Sha256: 80ba142d58cfa0156be8e8cb94010663c0d2765c44fbf9bb8eeea7ecd64f327d
Contents?: true
Size: 1.11 KB
Versions: 11
Compression:
Stored size: 1.11 KB
Contents
# ISO <<Class>> BaseUnit # writer output in XML # History: # Stan Smith 2014-12-03 original script # Stan Smith 2014-12-12 refactored to handle namespacing readers and writers module ADIWG module Mdtranslator module Writers module Iso class BaseUnit def initialize(xml) @xml = xml end def writeXML(hBase) # create and identity for the unit $idCount = $idCount.succ unitID = 'unit' + $idCount @xml.tag!('gml:BaseUnit', {'gml:id' => unitID}) do @xml.tag!('gml:identifier', {'codeSpace' => hBase[:codeSpace]}, hBase[:identifier]) @xml.tag!('gml:name', hBase[:name]) @xml.tag!('gml:catalogSymbol', hBase[:catalogSymbol]) @xml.tag!('gml:unitsSystem', {'xlink:href' => hBase[:unitsSystem]}) end end end end end end end
Version data entries
11 entries across 11 versions & 1 rubygems