class ADIWG::Mdtranslator::Writers::Iso19115_1::FeatureProperties
Public Class Methods
new(xml, hResponseObj)
click to toggle source
# File lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_featureProperties.rb, line 16 def initialize(xml, hResponseObj) @xml = xml @hResponseObj = hResponseObj end
Public Instance Methods
writeXML(hProperties)
click to toggle source
# File lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_featureProperties.rb, line 21 def writeXML(hProperties) # classes used gmlId = GMLIdentifier.new(@xml, @hResponseObj) unless hProperties.empty? # feature properties - description unless hProperties[:description].nil? @xml.tag!('gml:description', hProperties[:description]) end if hProperties[:description].nil? && @hResponseObj[:writerShowTags] @xml.tag!('gml:description') end # feature properties - identifier [0] unless hProperties[:identifiers].empty? hId = hProperties[:identifiers][0] gmlId.writeXML(hId) end if hProperties[:identifiers].empty? && @hResponseObj[:writerShowTags] @xml.tag!('gml:identifier', {'codeSpace' => ''}) end # feature properties - name [] hProperties[:featureNames].each do |name| @xml.tag!('gml:name', name) end if hProperties[:featureNames].empty? && @hResponseObj[:writerShowTags] @xml.tag!('gml:name') end # feature properties - featureScope - not supported # feature properties - acquisitionMethod - not supported end end