class ADIWG::Mdtranslator::Writers::Iso19115_1::EX_GeographicBoundingBox
Public Class Methods
new(xml, hResponseObj)
click to toggle source
# File lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_boundingBox.rb, line 16 def initialize(xml, hResponseObj) @xml = xml @hResponseObj = hResponseObj @NameSpace = ADIWG::Mdtranslator::Writers::Iso19115_1 end
Public Instance Methods
writeXML(hBBox)
click to toggle source
# File lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_boundingBox.rb, line 22 def writeXML(hBBox) # bounding box - west longitude (required) unless hBBox[:westLongitude].nil? @xml.tag!('gex:westBoundLongitude') do @xml.tag!('gco:Decimal', hBBox[:westLongitude]) end end if hBBox[:westLongitude].nil? @NameSpace.issueError(10) end # bounding box - east longitude (required) unless hBBox[:eastLongitude].nil? @xml.tag!('gex:eastBoundLongitude') do @xml.tag!('gco:Decimal', hBBox[:eastLongitude]) end end if hBBox[:eastLongitude].nil? @NameSpace.issueError(11) end # bounding box - south latitude (required) unless hBBox[:southLatitude].nil? @xml.tag!('gex:southBoundLatitude') do @xml.tag!('gco:Decimal', hBBox[:southLatitude]) end end if hBBox[:southLatitude].nil? @NameSpace.issueError(12) end # bounding box - north latitude (required) unless hBBox[:northLatitude].nil? @xml.tag!('gex:northBoundLatitude') do @xml.tag!('gco:Decimal', hBBox[:northLatitude]) end end if hBBox[:northLatitude].nil? @NameSpace.issueError(13) end end