Sha256: 22a7c8350650c859635018526d6f1324f4e9bd297b517df9630a398a978c376e
Contents?: true
Size: 1.62 KB
Versions: 11
Compression:
Stored size: 1.62 KB
Contents
# ISO <<Class>> RS_Identifier # writer # output for ISO 19115-2 XML # History: # Stan Smith 2014-09-03 original script # Stan Smith 2014-12-12 refactored to handle namespacing readers and writers module ADIWG module Mdtranslator module Writers module Iso class RS_Identifier def initialize(xml) @xml = xml end def writeXML(refId, refType) @xml.tag!('gmd:RS_Identifier') do # identity - code - required # identifiers can be name, epsg number, wkt case refType when 'name' @xml.tag!('gmd:code') do @xml.tag!('gco:CharacterString', refId) end when 'epsg' @xml.tag!('gmd:code') do s = 'urn:ocg:def:crs:EPSG::' + refId.to_s @xml.tag!('gco:CharacterString', s) end when 'wkt' @xml.tag!('gmd:code') do s = 'WKT::' + refId @xml.tag!('gco:CharacterString', s) end end end end end end end end end
Version data entries
11 entries across 11 versions & 1 rubygems