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

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

testWMSCapabilities.py runs successfully, but produces unsatisfactory output.

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