aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/csv2geojson8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/csv2geojson b/scripts/csv2geojson
index ec1d35c..49ed0c9 100755
--- a/scripts/csv2geojson
+++ b/scripts/csv2geojson
@@ -1,5 +1,13 @@
1#! /bin/bash 1#! /bin/bash
2 2
3echo --------------
4head -1 $1 | sed 's/,/ /g'
5echo --------------
6echo
7
8read -p "Number of latitude column: " lat_col
9read -p "Number of longitude column: " lon_col
10
3sed 's/[^,]*/"\0"/g' $1 |\ 11sed 's/[^,]*/"\0"/g' $1 |\
4sed 's/.*/[\0]/g' |\ 12sed 's/.*/[\0]/g' |\
5sed '1d' |\ 13sed '1d' |\