diff options
author | Dirk Engling <erdgeist@erdgeist.org> | 2014-02-10 15:37:28 +0100 |
---|---|---|
committer | Dirk Engling <erdgeist@erdgeist.org> | 2014-02-10 15:37:28 +0100 |
commit | 8c8403f6b6fdfc72da40ab596367aac69eab79ac (patch) | |
tree | f2b94472c38c5a66a0c2bde4f6e5984b0d440e19 /src | |
parent | a3e3fddaf78999916228172fbf5b718b59719b7f (diff) |
First clumsy attempt to lookup geo koordinates for old telefonbuch map and route versions. Does not work on non-map and route dumps.
Diffstat (limited to 'src')
-rwxr-xr-x | src/makecolumns.sh | 8 |
1 files changed, 7 insertions, 1 deletions
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() { | |||
182 | fi | 182 | fi |
183 | 183 | ||
184 | karto=$1/[Dd][Aa][Tt]/[Kk][Aa][Rr][Tt][Oo].[Dd][Aa][Tt] | 184 | karto=$1/[Dd][Aa][Tt]/[Kk][Aa][Rr][Tt][Oo].[Dd][Aa][Tt] |
185 | [ -f ${karto} ] && do_processfile_old ${karto} "geo coordinates" 90_Geokoordinaten_hnr | 185 | [ -f ${karto} ] && do_processfile_old ${karto} "geo coordinates" 90_Geokoordinaten_hnr_raw |
186 | |||
187 | printf "Looking up geo coordinates for each phonebook entry ... " | ||
188 | tr '\0' '\n' < 90_Geokoordinaten_hnr_raw | tr ';' '\t' | cut -f "1,2,3,4,6,7" | tr '\n' '\0' > 90_Geokoordinaten_hnr | ||
189 | rm 90_Geokoordinaten_hnr_raw | ||
190 | lam 10_Postleitzahl -s $'\t' 07_Strasse -s $'\t' 08_Hausnummer | mapcoords 90_Geokoordinaten_hnr | convertcoords > 16_Koordinaten | ||
191 | printf "done.\n" | ||
186 | } | 192 | } |
187 | 193 | ||
188 | handle_new_format() { | 194 | handle_new_format() { |