[Tile-serving] [openstreetmap/osm2pgsql] How to select specific role members of relations and combine to create geometry (Discussion #1752)
Jochen Topf
notifications at github.com
Mon Sep 5 07:09:44 UTC 2022
In https://osm2pgsql.org/doc/manual.html#processing-callbacks you can see that there is a `members` array you can access from the parameter of the processing callback which contains all the members with their roles. The GeometryCollection we spoke about contains one geometry for each node and way member, so you can iterate over both the `object.members` array as well as the result of `object:as_geometrycollection()` at the same time, ignore the members of type relation and you have a one-to-one correspondence between roles and geometry.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/discussions/1752#discussioncomment-3555849
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/osm2pgsql/repo-discussions/1752/comments/3555849 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20220905/64546c81/attachment.htm>
More information about the Tile-serving
mailing list