diff options
| author | Dirk Engling <erdgeist@erdgeist.org> | 2014-02-09 03:52:19 +0100 |
|---|---|---|
| committer | Dirk Engling <erdgeist@erdgeist.org> | 2014-02-09 03:52:19 +0100 |
| commit | 6b950de8f813c1cd48978387b5bf458165a6f90c (patch) | |
| tree | ba3e25bbd23fb6c0d847bfd94f55d12a5b68e341 | |
| parent | ec0bcde794bcb6fa2a93e09a7c1a64dd69e96260 (diff) | |
Automatically convert coordinates to WGS84
| -rwxr-xr-x | src/makecolumns.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/makecolumns.sh b/src/makecolumns.sh index 9e8d6cb..1d3fcd1 100755 --- a/src/makecolumns.sh +++ b/src/makecolumns.sh | |||
| @@ -244,7 +244,7 @@ handle_new_format() { | |||
| 244 | cat file_* > 90_Geokoordinaten_hnr | 244 | cat file_* > 90_Geokoordinaten_hnr |
| 245 | printf "done.\n" | 245 | printf "done.\n" |
| 246 | printf "Looking up geo coordinates for each phonebook entry ... " | 246 | printf "Looking up geo coordinates for each phonebook entry ... " |
| 247 | lam 10_Postleitzahl -s $'\t' 07_Strasse -s $'\t' 08_Hausnummer | mapcoords 90_Geokoordinaten_hnr > 16_Koordinaten | 247 | lam 10_Postleitzahl -s $'\t' 07_Strasse -s $'\t' 08_Hausnummer | mapcoords 90_Geokoordinaten_hnr | convertcoords > 16_Koordinaten |
| 248 | printf "done.\n" | 248 | printf "done.\n" |
| 249 | elif [ -f $1/zip-streets-geo.tl ]; then | 249 | elif [ -f $1/zip-streets-geo.tl ]; then |
| 250 | printf "Extracting geo coordinates (precision: street) ... " | 250 | printf "Extracting geo coordinates (precision: street) ... " |
| @@ -252,7 +252,7 @@ handle_new_format() { | |||
| 252 | cat file_* > 91_Geokoordinaten_str | 252 | cat file_* > 91_Geokoordinaten_str |
| 253 | printf "done.\n" | 253 | printf "done.\n" |
| 254 | printf "Looking up geo coordinates for each phonebook entry ... " | 254 | printf "Looking up geo coordinates for each phonebook entry ... " |
| 255 | lam 10_Postleitzahl -s $'\t' 07_Strasse | mapcoords 91_Geokoordinaten_str > 16_Koordinaten | 255 | lam 10_Postleitzahl -s $'\t' 07_Strasse | mapcoords 91_Geokoordinaten_str | convertcoords > 16_Koordinaten |
| 256 | printf "done.\n" | 256 | printf "done.\n" |
| 257 | fi | 257 | fi |
| 258 | rm file_* | 258 | rm file_* |
