Class: ADIWG::Mdtranslator::Writers::Iso19115_2::EX_GeographicBoundingBox
- Inherits:
-
Object
- Object
- ADIWG::Mdtranslator::Writers::Iso19115_2::EX_GeographicBoundingBox
- Defined in:
- lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_boundingBox.rb
Instance Method Summary collapse
-
#initialize(xml, hResponseObj) ⇒ EX_GeographicBoundingBox
constructor
A new instance of EX_GeographicBoundingBox.
- #writeXML(hBBox) ⇒ Object
Constructor Details
#initialize(xml, hResponseObj) ⇒ EX_GeographicBoundingBox
23 24 25 26 27 |
# File 'lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_boundingBox.rb', line 23 def initialize(xml, hResponseObj) @xml = xml @hResponseObj = hResponseObj @NameSpace = ADIWG::Mdtranslator::Writers::Iso19115_2 end |
Instance Method Details
#writeXML(hBBox) ⇒ Object
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 70 71 72 73 74 75 |
# File 'lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_boundingBox.rb', line 29 def writeXML(hBBox) # bounding box - west longitude (required) s = hBBox[:westLongitude] unless s.nil? @xml.tag!('gmd:westBoundLongitude') do @xml.tag!('gco:Decimal', s) end end if s.nil? @NameSpace.issueError(10) end # bounding box - east longitude (required) s = hBBox[:eastLongitude] unless s.nil? @xml.tag!('gmd:eastBoundLongitude') do @xml.tag!('gco:Decimal', s) end end if s.nil? @NameSpace.issueError(11) end # bounding box - south latitude (required) s = hBBox[:southLatitude] unless s.nil? @xml.tag!('gmd:southBoundLatitude') do @xml.tag!('gco:Decimal', s) end end if s.nil? @NameSpace.issueError(12) end # bounding box - north latitude (required) s = hBBox[:northLatitude] unless s.nil? @xml.tag!('gmd:northBoundLatitude') do @xml.tag!('gco:Decimal', s) end end if s.nil? @NameSpace.issueError(13) end end |