[opengeodb] Falsche Einträge in PLZ.tab

Felix Schwarz felix.schwarz at oss.schwarz.eu
Mit Dez 12 09:47:28 CET 2007


Hallo,

mir ist aufgefallen, dass die PLZ.tab ein paar Fehler enthält: Einige
Postleitzahlen, die in der OpenGeoDB enthalten sind, gibt es in der PLZ.tab
gar nicht.

Da ich nicht immer nur zufällig fehlende Einträge entdecken wollte, habe ich
mir ein Python-Skript geschrieben, dass alle deutschen Postleitzahlen aus der
OpenGeoDB (026.sql) ermittelt und dem Datenbestand der PLZ.tab vergleicht (letztere
habe ich mittels eines anderen Skripts in eine eigene DB-Tabelle importiert).

Dabei sind mir auch offensichtlich falsche Einträge in der OpenGeoDB aufgefallen,
z.B. loc_id 24800 ("Täferrot"), Postleitzahl "73577 ?". Ein anderes Beispiel
ist Braunschweig (loc_id 14871) mit (u.a.) der Plz "3300".

Natürlich kann auch mein Überprüfungsskript mal Mist bauen. Das Skript steht
online zur Verfügung:
http://www.felix-schwarz.name/files/misc/2007/opengeo_missing_plz.py

Jetzt würde ich mir gerne eine neue Version der PLZ.tab erzeugen.
@Martin: Wie kommen die Koordinaten für die einzelnen PLZ-Einträge zustande?

Hier noch die komplette Liste der potenziellen Probleme (einige Plz kommen
doppelt vor, ich habe diese nicht herausgefiltert):

PLZ:  16921 , loc_id:  13614 : ' Alt Krüssow '
PLZ:  3388 , loc_id:  13922 : ' Bad Harzburg '
PLZ:  89432 , loc_id:  14511 : ' Binswangen bei Dillingen an der Donau '
PLZ:  23944 , loc_id:  14745 : ' Ostseebad Boltenhagen '
PLZ:  3300 , loc_id:  14871 : ' Braunschweig '
PLZ:  01108 , loc_id:  15827 : ' Dresden '
PLZ:  01156 , loc_id:  15827 : ' Dresden '
PLZ:  01328 , loc_id:  15827 : ' Dresden '
PLZ:  60438 , loc_id:  16601 : ' Frankfurt am Main '
PLZ:  20038 , loc_id:  17838 : ' Hamburg '
PLZ:  3000 , loc_id:  17873 : ' Hannover '
PLZ:  67653 , loc_id:  19020 : ' Kaiserslautern '
PLZ:  04158 , loc_id:  20112 : ' Leipzig '
PLZ:  04178 , loc_id:  20112 : ' Leipzig '
PLZ:  04288 , loc_id:  20112 : ' Leipzig '
PLZ:  04316 , loc_id:  20112 : ' Leipzig '
PLZ:  04319 , loc_id:  20112 : ' Leipzig '
PLZ:  71226 , loc_id:  20152 : ' Leonberg (Württemberg) '
PLZ:  03202 , loc_id:  20418 : ' Luckow-Petershagen '
PLZ:  23539 , loc_id:  20437 : ' Lübeck '
PLZ:  15372 , loc_id:  21176 : ' Müncheberg '
PLZ:  18231 , loc_id:  21373 : ' Neubukow '
PLZ:  14461 , loc_id:  22587 : ' Potsdam '
PLZ:  73577 ? , loc_id:  24800 : ' Täferrot '
PLZ:  89444 , loc_id:  25407 : ' Villenbach '
PLZ:  23952 , loc_id:  26298 : ' Wismar, Mecklenburg '
PLZ:  89449 , loc_id:  26683 : ' Zusamaltheim '
PLZ:  01156 , loc_id:  27366 : ' Gompitz '
PLZ:  01156 , loc_id:  27367 : ' Gompitz '
PLZ:  01156 , loc_id:  27368 : ' Ockerwitz '
PLZ:  01156 , loc_id:  27369 : ' Pennrich '
PLZ:  01156 , loc_id:  27370 : ' Roitzsch bei Dresden '
PLZ:  01156 , loc_id:  27371 : ' Steinbach '
PLZ:  01156 , loc_id:  27372 : ' Zöllmen '
PLZ:  01156 , loc_id:  27373 : ' Unkersdorf '
PLZ:  01108 , loc_id:  27376 : ' Johannstadt '
PLZ:  01156 , loc_id:  27376 : ' Johannstadt '
PLZ:  01328 , loc_id:  27376 : ' Johannstadt '
PLZ:  01108 , loc_id:  27382 : ' Stetzsch '
PLZ:  01156 , loc_id:  27382 : ' Stetzsch '
PLZ:  01328 , loc_id:  27382 : ' Stetzsch '
PLZ:  01108 , loc_id:  27384 : ' Gorbitz '
PLZ:  01156 , loc_id:  27384 : ' Gorbitz '
PLZ:  01328 , loc_id:  27384 : ' Gorbitz '
PLZ:  01156 , loc_id:  27386 : ' Altfranken '
PLZ:  39434 , loc_id:  35880 : ' Hecklingen bei Staßfurt '
PLZ:  39434 , loc_id:  35880 : ' Hecklingen bei Staßfurt '

Felix Schwarz