Sha256: 86f6a3db04128ac5df66d27619f1c001f7a36e34556dc11556c3f6d6ff3bf4a1
Contents?: true
Size: 968 Bytes
Versions: 16
Compression:
Stored size: 968 Bytes
Contents
# ISO <<Class>> UnitDefinition # writer output in XML # History: # Stan Smith 2015-08-27 copied from 19110 writer module ADIWG module Mdtranslator module Writers module Iso19115_2 class UnitDefinition def initialize(xml, responseObj) @xml = xml @responseObj = responseObj end def writeXML(unit) # create an identity for the unit @responseObj[:writerMissingIdCount] = @responseObj[:writerMissingIdCount].succ unitID = 'unit' + @responseObj[: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
16 entries across 16 versions & 1 rubygems