Sha256: 4c9584e3d8b12af7269b989dc76d5197f3028c0fc23bc5b952bbf00dd6ef89d0
Contents?: true
Size: 720 Bytes
Versions: 1
Compression:
Stored size: 720 Bytes
Contents
# ISO <<Class>> DerivedUnit # writer output in XML # History: # Stan Smith 2014-12-03 original script class DerivedUnit def initialize(xml) @xml = xml end def writeXML(hDerived) # create and identity for the unit $idCount = $idCount.succ unitID = 'unit' + $idCount @xml.tag!('gml:DerivedUnit', {'gml:id' => unitID}) do @xml.tag!('gml:identifier', {'codeSpace' => hDerived[:codeSpace]}, hDerived[:identifier]) @xml.tag!('gml:name', hDerived[:name]) @xml.tag!('gml:remarks', hDerived[:remarks]) @xml.tag!('gml:catalogSymbol', hDerived[:catalogSymbol]) aTerms = hDerived[:derivationUnitTerm] aTerms.each do |term| @xml.tag!('gml:derivationUnitTerm',term) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
adiwg-mdtranslator-0.10.2 | lib/adiwg/mdtranslator/writers/iso/units/class_derivedUnit.rb |