Class: ADIWG::Mdtranslator::Writers::Iso19115_3::MD_ScopeDescription
- Inherits:
-
Object
- Object
- ADIWG::Mdtranslator::Writers::Iso19115_3::MD_ScopeDescription
- Defined in:
- lib/adiwg/mdtranslator/writers/iso19115_3/classes/class_scopeDescription.rb
Instance Method Summary collapse
-
#initialize(xml, hResponseObj) ⇒ MD_ScopeDescription
constructor
A new instance of MD_ScopeDescription.
- #writeXML(hScopeDesc) ⇒ Object
Constructor Details
#initialize(xml, hResponseObj) ⇒ MD_ScopeDescription
Returns a new instance of MD_ScopeDescription.
14 15 16 17 |
# File 'lib/adiwg/mdtranslator/writers/iso19115_3/classes/class_scopeDescription.rb', line 14 def initialize(xml, hResponseObj) @xml = xml @hResponseObj = hResponseObj end |
Instance Method Details
#writeXML(hScopeDesc) ⇒ Object
19 20 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 59 60 61 62 63 64 65 66 67 68 69 |
# File 'lib/adiwg/mdtranslator/writers/iso19115_3/classes/class_scopeDescription.rb', line 19 def writeXML(hScopeDesc) # these scope description types not implemented ----------------------------- # featureInstances (not supported in mdJson) # attributeInstances (not supported in mdJson) # scope description - dataset unless hScopeDesc[:dataset].nil? @xml.tag!('mcc:levelDescription') do @xml.tag!('mcc:MD_ScopeDescription') do @xml.tag!('mcc:dataset') do @xml.tag!('gco:CharacterString', hScopeDesc[:dataset]) end end end end # scope description - attributes unless hScopeDesc[:attributes].nil? @xml.tag!('mcc:levelDescription') do @xml.tag!('mcc:MD_ScopeDescription') do @xml.tag!('mcc:attributes') do @xml.tag!('gco:CharacterString', hScopeDesc[:attributes]) end end end end # scope description - features unless hScopeDesc[:features].nil? @xml.tag!('mcc:levelDescription') do @xml.tag!('mcc:MD_ScopeDescription') do @xml.tag!('mcc:features') do @xml.tag!('gco:CharacterString', hScopeDesc[:features]) end end end end # scope description - other unless hScopeDesc[:other].nil? @xml.tag!('mcc:levelDescription') do @xml.tag!('mcc:MD_ScopeDescription') do @xml.tag!('mcc:other') do @xml.tag!('gco:CharacterString', hScopeDesc[:other]) end end end end end |