diff options
-rwxr-xr-x | makecolumns.sh | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/makecolumns.sh b/makecolumns.sh index 93d2e15..b60cfd6 100755 --- a/makecolumns.sh +++ b/makecolumns.sh | |||
@@ -187,10 +187,14 @@ handle_format_version_2() { | |||
187 | [ -f 14_unknown ] && mv 14_unknown 14_Email | 187 | [ -f 14_unknown ] && mv 14_unknown 14_Email |
188 | [ -f 15_unknown ] && mv 15_unknown 15_Webadresse | 188 | [ -f 15_unknown ] && mv 15_unknown 15_Webadresse |
189 | 189 | ||
190 | printf "Normalizing flags ..." | 190 | printf "Normalizing flags ... " |
191 | sed -i '' -e s:^1$:00:g -e s:^3$:01:g -e s:^2$:02:g 01_Flags | 191 | sed -i '' -e s:^1$:00:g -e s:^3$:01:g -e s:^2$:02:g 01_Flags |
192 | printf "done.\n" | 192 | printf "done.\n" |
193 | 193 | ||
194 | printf "Normalizing zusaetze ... " | ||
195 | lam 04_Namenszusatz 05_Adresszusatz | tr '\t' ' ' | sed -E s/' +'/' '/g > 04_Zusaetze | ||
196 | printf "done.\n" | ||
197 | |||
194 | # If street names come in an extra file, extract | 198 | # If street names come in an extra file, extract |
195 | # street names first | 199 | # street names first |
196 | streets=$1/[Dd][Aa][Tt]/[Ss][Tt][Rr][Aa][Ss][Ss][Ee][Nn].[Dd][Aa][Tt] | 200 | streets=$1/[Dd][Aa][Tt]/[Ss][Tt][Rr][Aa][Ss][Ss][Ee][Nn].[Dd][Aa][Tt] |
@@ -267,6 +271,10 @@ handle_format_version_3() { | |||
267 | sed -E $'s:$:\t:' < 07_08_Strassenindex_Hausnummer | cut -f 2 > 08_Hausnummer | 271 | sed -E $'s:$:\t:' < 07_08_Strassenindex_Hausnummer | cut -f 2 > 08_Hausnummer |
268 | printf "done.\n" | 272 | printf "done.\n" |
269 | 273 | ||
274 | printf "Normalizing zusaetze ... " | ||
275 | tr '\t' ' ' < 04_05_Namenszusatz_Addresszusatz | sed -E s/' +'/' '/g > 04_Zusaetze | ||
276 | printf "done.\n" | ||
277 | |||
270 | if [ -f $1/zip-streets-hn-geo.tl ]; then | 278 | if [ -f $1/zip-streets-hn-geo.tl ]; then |
271 | printf "Extracting geo coordinates (precision: house number) ... " | 279 | printf "Extracting geo coordinates (precision: house number) ... " |
272 | extract_version_3 $1/zip-streets-hn-geo.tl | 280 | extract_version_3 $1/zip-streets-hn-geo.tl |