diff options
Diffstat (limited to 'scripts/csv2geojson')
-rwxr-xr-x | scripts/csv2geojson | 8 |
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 | ||
3 | echo -------------- | ||
4 | head -1 $1 | sed 's/,/ /g' | ||
5 | echo -------------- | ||
6 | echo | ||
7 | |||
8 | read -p "Number of latitude column: " lat_col | ||
9 | read -p "Number of longitude column: " lon_col | ||
10 | |||
3 | sed 's/[^,]*/"\0"/g' $1 |\ | 11 | sed 's/[^,]*/"\0"/g' $1 |\ |
4 | sed 's/.*/[\0]/g' |\ | 12 | sed 's/.*/[\0]/g' |\ |
5 | sed '1d' |\ | 13 | sed '1d' |\ |