Sha256: 9b38345c355fb65b8c9dbe688cc3a7d579f833faa2fda380b383ea769156a9ce
Contents?: true
Size: 1.1 KB
Versions: 15
Compression:
Stored size: 1.1 KB
Contents
# ISO <<Class>> BaseUnit # 19115-1 writer output in XML # History: # Stan Smith 2019-04-08 copied from 19115_2 writer module ADIWG module Mdtranslator module Writers module Iso19115_1 class BaseUnit def initialize(xml, hResponseObj) @xml = xml @hResponseObj = hResponseObj end def writeXML(hBase) # create and identity for the unit @hResponseObj[:writerMissingIdCount] = @hResponseObj[:writerMissingIdCount].succ unitID = 'unit' + @hResponseObj[:writerMissingIdCount] @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
15 entries across 15 versions & 1 rubygems