[OSM-talk] Generate polygons out of administrative Relations

Nic osm at geoworld.de
Thu Dec 28 09:37:17 UTC 2017


Hello list,

I want to generate a polygon out of the different members/ways of an
administrative relation (e.g. Bundesland).
For that purpose I have loaded a pbf file via osmosis into a
postgresql/postgis database.
However it seem that the random order of relation members causes
trouble generating a "simplified" (st_linemerge) linestring suitable to
apply the st_makepolygon funktion to it.
Any recommendation how to properly generated a polygon from the
relation members?

Thanks
Nic



More information about the talk mailing list