source: DPPP/kml/csml2kml/python/csml2kml/csml2kml/tests/testWMSCapabilities.py @ 3479

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/DPPP/kml/csml2kml/python/csml2kml/csml2kml/tests/testWMSCapabilities.py@3479
Revision 3479, 335 bytes checked in by mkochan, 14 years ago (diff)

Added module WMSCapabilities.py with a wrapper class for the <wms:WMS_Capabilities> tag (returned by the WMS getCapabilities() request), and a wrapper class for the <wms:Layer> tag. (Test successful, but undocumented).

Line 
1from cElementTree import ElementTree
2
3import utils
4from WMSCapabilities import *
5
6etree = ElementTree()
7etree.parse('../../../../testdata/ar4-shortened.xml')
8wmsCapabilities = WMSCapabilities()
9wmsCapabilitiesElement = etree.getroot()
10print wmsCapabilitiesElement
11wmsCapabilities.parseXML(wmsCapabilitiesElement)
12print wmsCapabilities
Note: See TracBrowser for help on using the repository browser.