Sha256: 1b66dba5e80e4c918458b3c97004aaebdcd5afb26086304d01355de95e2c7db0
Contents?: true
Size: 1.28 KB
Versions: 32
Compression:
Stored size: 1.28 KB
Contents
# ISO <<Class>> UnitDefinition # writer output in XML # History: # Stan Smith 2014-12-03 original script # Stan Smith 2014-12-12 refactored to handle namespacing readers and writers # Stan Smith 2015-06-22 replace global ($response) with passed in object (responseObj) # Stan Smith 2015-07-14 refactored to make iso19110 independent of iso19115_2 classes # Stan Smith 2015-07-14 refactored to eliminate namespace globals $WriterNS and $IsoNS module ADIWG module Mdtranslator module Writers module Iso19110 class UnitDefinition def initialize(xml, responseObj) @xml = xml @hResponseObj = responseObj end def writeXML(unit) # create an identity for the unit @hResponseObj[:writerMissingIdCount] = @hResponseObj[:writerMissingIdCount].succ unitID = 'unit' + @hResponseObj[:writerMissingIdCount] @xml.tag!('gml:UnitDefinition', {'gml:id' => unitID}) do @xml.tag!('gml:identifier', {'codeSpace' => ''}, unit) end end end end end end end
Version data entries
32 entries across 32 versions & 1 rubygems