Pflege der deutschen PLZ-Daten in OSM

Schaun mer mal. Ich hab inzwischen schon eine Referenztabelle (8201 Entries sind wohl ok) und in 2 Minuten ist der Centroid auch drin.

danke für den Tip
Walter

Done:


#select country,"type","value",st_astext(pointonsurface) pointonsurface from boundaries;

 country | type | value |           pointonsurface            
---------+------+-------+-------------------------------------
   51477 | pc   | 01067 | POINT(13.7104914983536 51.06011365)
   51477 | pc   | 01069 | POINT(13.7307897688335 51.04092775)
   51477 | pc   | 01097 | POINT(13.7370529719239 51.0670115)
   51477 | pc   | 01099 | POINT(13.8434834861318 51.0979804)
   51477 | pc   | 01108 | POINT(13.791659217969 51.15281005)
   51477 | pc   | 01109 | POINT(13.7523586370305 51.12140955)
   51477 | pc   | 01127 | POINT(13.7298386795764 51.0788104)
   51477 | pc   | 01129 | POINT(13.7306840494518 51.09772595)
   51477 | pc   | 01139 | POINT(13.6919074079352 51.07972135)
   51477 | pc   | 01156 | POINT(13.6181508329594 51.06591145)
...
   51477 | pc   | 99994 | POINT(10.6636364951025 51.24952705)
   51477 | pc   | 99996 | POINT(10.5945773695467 51.2885868)
   51477 | pc   | 99998 | POINT(10.5963676976598 51.2310608)
(8201 rows)

Country und type, damit ich an der Stelle flexibel bin.

Ich “arbeite” in meiner Software überall mit st_PointOnSurface(geom), weil der immer innerhalb der Fläche liegt (auch bei C-förmigen oder “löchrigen” Flächen) und dennoch ziemlich nahe am Zentrum liegt, wenn es möglich ist.