Added oneShot.py: toool to generate HTML output from...
...a given CSV
... | ... |
@@ -0,0 +1,18 @@ |
1 |
+#!/usr/bin/python3 |
|
2 |
+import csv2geojs |
|
3 |
+import sys |
|
4 |
+ |
|
5 |
+def usage(): |
|
6 |
+ print(sys.argv[0]+" <SUBID> <CSVFILE>") |
|
7 |
+ |
|
8 |
+if __name__ == "__main__": |
|
9 |
+ if 3 is not len(sys.argv): |
|
10 |
+ usage() |
|
11 |
+ sys.exit(1) |
|
12 |
+ |
|
13 |
+ subId=sys.argv[1] |
|
14 |
+ filename=sys.argv[2] |
|
15 |
+ csv2geojs.networkSurveySetLeaflet(False) |
|
16 |
+ csv2geojs.networkSurvey(filename,subId) |
|
17 |
+ print("Output : networkSurvey-"+subId+".html") |
|
18 |
+ |