[Tile-serving] [openstreetmap/osm2pgsql] How can you get country boundaries with flex output? (Discussion #1934)

Sarah Hoffmann notifications at github.com
Sun Feb 26 19:54:10 UTC 2023


Boundaries are mapped as relations in OSM (and only relations), so you need to use the `process_relation()` function. Also have a look at the `not_null` flag for geometry columns. 

And finally, for country boundaries better filter by `boundary=administrative`. People have funny ideas, where they add an `admin_level`tag. Give the `--remove-tags` switch a try. It is another great way to reduce the amount of noise from referenced objects (e.g. ways in your boundary relation which you only want for the geometry).

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/discussions/1934#discussioncomment-5116043
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/osm2pgsql/repo-discussions/1934/comments/5116043 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20230226/a17217bc/attachment.htm>


More information about the Tile-serving mailing list