Sha256: 8992c71f9d042745d930c5024564a14dff8b6f75b4b4848dfd839058a1730b35
Contents?: true
Size: 893 Bytes
Versions: 36
Compression:
Stored size: 893 Bytes
Contents
# ISO <<Class>> UnitDefinition # 19115-2 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, hResponseObj) @xml = xml @hResponseObj = hResponseObj 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
36 entries across 36 versions & 1 rubygems