Class: ADIWG::Mdtranslator::Writers::Iso19115_3::FeatureProperties
- Inherits:
-
Object
- Object
- ADIWG::Mdtranslator::Writers::Iso19115_3::FeatureProperties
- Defined in:
- lib/adiwg/mdtranslator/writers/iso19115_3/classes/class_featureProperties.rb
Instance Method Summary collapse
-
#initialize(xml, hResponseObj) ⇒ FeatureProperties
constructor
A new instance of FeatureProperties.
- #writeXML(hProperties) ⇒ Object
Constructor Details
#initialize(xml, hResponseObj) ⇒ FeatureProperties
Returns a new instance of FeatureProperties.
16 17 18 19 |
# File 'lib/adiwg/mdtranslator/writers/iso19115_3/classes/class_featureProperties.rb', line 16 def initialize(xml, hResponseObj) @xml = xml @hResponseObj = hResponseObj end |
Instance Method Details
#writeXML(hProperties) ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
# File 'lib/adiwg/mdtranslator/writers/iso19115_3/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 |