source:
trunk/workshop-routing-foss4g/web/proj4js/tools/mkpjcat.py
@
80
Revision 76, 417 bytes checked in by djay, 13 years ago (diff) | |
---|---|
|
Line | |
---|---|
1 | #!/usr/bin/env python |
2 | |
3 | import sys |
4 | sys.path.append(".") |
5 | |
6 | import pjjs |
7 | |
8 | resourcesDirectory = "catalogues" |
9 | targetDirectory = "../lib/defs" |
10 | |
11 | if len(sys.argv) > 1: |
12 | resourcesDirectory = sys.argv[1] |
13 | |
14 | if len(sys.argv) > 2: |
15 | targetDirectory = sys.argv[2] |
16 | |
17 | print "Generating Proj4js catalogues." |
18 | pjjs.pjcat2js_clean(resourcesDirectory,targetDirectory) |
19 | pjjs.pjcat2js_run(resourcesDirectory,targetDirectory) |
20 | |
21 | print "Done." |
Note: See TracBrowser
for help on using the repository browser.