Class: ADIWG::Mdtranslator::Writers::Iso19115_2::MD_ScopeDescription
- Inherits:
-
Object
- Object
- ADIWG::Mdtranslator::Writers::Iso19115_2::MD_ScopeDescription
- Defined in:
- lib/adiwg/mdtranslator/writers/iso19115_2/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_2/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 |
# File 'lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_scopeDescription.rb', line 19 def writeXML(hScopeDesc) # these scope description types not implemented ----------------------------- # attributes (ISO 19115-2 XSD type is set to 'empty') # features (ISO 19115-2 XSD type is set to 'empty') # featureInstances (not supported in mdJson) # attributeInstances (not supported in mdJson) # scope description - dataset sData = hScopeDesc[:dataset] unless sData.nil? @xml.tag!('gmd:levelDescription') do @xml.tag!('gmd:MD_ScopeDescription') do @xml.tag!('gmd:dataset') do @xml.tag!('gco:CharacterString', sData) end end end end # scope description - other sOther = hScopeDesc[:other] unless sOther.nil? @xml.tag!('gmd:levelDescription') do @xml.tag!('gmd:MD_ScopeDescription') do @xml.tag!('gmd:other') do @xml.tag!('gco:CharacterString', sOther) end end end end end |