Sha256: 0497cc0216cada893c5ad1121d5cd0e6758f5e92735bf946a0b701ac1bfe4ade
Contents?: true
Size: 888 Bytes
Versions: 3
Compression:
Stored size: 888 Bytes
Contents
# ISO <<CodeLists>> gmd:MD_SpatialRepresentationTypeCode # from http://www.isotc211.org/2005/resources/Codelist/gmxCodelists.xml # History: # Stan Smith 2013-10-21 original script class MD_SpatialRepresentationTypeCode def initialize(xml) @xml = xml end def writeXML(codeName) case(codeName) when 'vector' then codeID = '001' when 'grid' then codeID = '002' when 'textTable' then codeID = '003' when 'tin' then codeID = '004' when 'stereoModel' then codeID = '005' when 'video' then codeID = '006' else codeName = 'INVALID SPATIAL REPRESENTATION TYPE' codeID = '999' end # write xml @xml.tag!('gmd:MD_SpatialRepresentationTypeCode',{:codeList=>'http://www.isotc211.org/2005/resources/Codelist/gmxCodelists.xml#MD_SpatialRepresentationTypeCode', :codeListValue=>"#{codeName}", :codeSpace=>"#{codeID}"}) end end
Version data entries
3 entries across 3 versions & 1 rubygems