From 8c8403f6b6fdfc72da40ab596367aac69eab79ac Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Mon, 10 Feb 2014 15:37:28 +0100 Subject: First clumsy attempt to lookup geo koordinates for old telefonbuch map and route versions. Does not work on non-map and route dumps. --- src/makecolumns.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/makecolumns.sh b/src/makecolumns.sh index 7f61ea7..2df65c9 100755 --- a/src/makecolumns.sh +++ b/src/makecolumns.sh @@ -182,7 +182,13 @@ handle_old_format() { fi karto=$1/[Dd][Aa][Tt]/[Kk][Aa][Rr][Tt][Oo].[Dd][Aa][Tt] - [ -f ${karto} ] && do_processfile_old ${karto} "geo coordinates" 90_Geokoordinaten_hnr + [ -f ${karto} ] && do_processfile_old ${karto} "geo coordinates" 90_Geokoordinaten_hnr_raw + + printf "Looking up geo coordinates for each phonebook entry ... " + tr '\0' '\n' < 90_Geokoordinaten_hnr_raw | tr ';' '\t' | cut -f "1,2,3,4,6,7" | tr '\n' '\0' > 90_Geokoordinaten_hnr + rm 90_Geokoordinaten_hnr_raw + lam 10_Postleitzahl -s $'\t' 07_Strasse -s $'\t' 08_Hausnummer | mapcoords 90_Geokoordinaten_hnr | convertcoords > 16_Koordinaten + printf "done.\n" } handle_new_format() { -- cgit v1.2.3