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

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

Progressed on implementing WMS Layers -> KML conversion (before testing).

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()
10
11wmsCapabilities.parseXML(wmsCapabilitiesElement)
12print wmsCapabilities
13print
14
15etree2 = ElementTree()
16etree2.parse('../../../../testdata/ar4.conf.xml')
17wmsRequestConfigElement = etree2.getroot()
18
19#wmsLayersConvertor = WMSLayersConvertor(wmsCapabilities.topWmsLayer, None, '../../../../output/wms-ar4')
20#wmsLayersConvertor.convert()
Note: See TracBrowser for help on using the repository browser.