source: DPPP/kml/csml2kml/python/csml2kml/tests/testPointSeriesConvertor.py @ 3306

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

Finished the testPointSeriesConvertor.py test script. Have running version of configurable PointSeriesConvertor? module.

Line 
1from PointSeriesConvertor import PointSeriesConvertor
2from cElementTree import ElementTree
3
4# Load the configuration XML element
5configTree = ElementTree()
6configTree.parse('../../../testdata/midas.csml2kml.conf.xml')
7configRoot = configTree.getroot()
8config = configRoot.find('CSMLStationPointSeries')
9
10# Do the conversion
11convertor = PointSeriesConvertor(config, '../../../output/exampleps_stations.2.xml')
12convertor.convert()
Note: See TracBrowser for help on using the repository browser.