Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/DPPP/kml/csml2kml/python/csml2kml/csml2kml/scripts/stations2kml.py@3717
Revision 3717,
397 bytes
checked in by mkochan, 13 years ago
(diff) |
Reverted to the version without the API dir.
|
Line | |
---|
1 | import sys |
---|
2 | from csml2kml.StationConvertor import StationConvertor |
---|
3 | from csml2kml.ET import ElementTree |
---|
4 | |
---|
5 | # Get the config file name |
---|
6 | if len(sys.argv) != 2: |
---|
7 | raise ValueError('The name of config file (and nothing more) required') |
---|
8 | configFileName = sys.argv[1] |
---|
9 | |
---|
10 | # Load the configuration XML element |
---|
11 | config = ElementTree().parse(configFileName) |
---|
12 | |
---|
13 | # Do the conversion |
---|
14 | StationConvertor(config).convert() |
---|
Note: See
TracBrowser
for help on using the repository browser.