[Tile-serving] [osm2pgsql-dev/osm2pgsql] Flex: Allow creating point geometry from way (PR #2429)

Jochen Topf notifications at github.com
Fri Oct 31 13:29:05 UTC 2025


joto left a comment (osm2pgsql-dev/osm2pgsql#2429)

I think that's a different use case and we should solve that differently. We'll need some function to get nodes from ways and members from relations, but not just their geometries, but the whole object. We don't need `num_nodes()`, because we have `nodes` and can get the length with `#`. Similarly for members of a relation. But we need either a `get_node(N)` as you say of a more general `get_node(ID)` plus the same for relations. But that's a whole can of worms we open up there, because we need to access the database for that which makes everything slower and all that. We could have a `as_point(N)` for ways, but this would not extend well for relations, so I am hesitant to do that.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/osm2pgsql-dev/osm2pgsql/pull/2429#issuecomment-3473099328
You are receiving this because you are subscribed to this thread.

Message ID: <osm2pgsql-dev/osm2pgsql/pull/2429/c3473099328 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20251031/f611663f/attachment.htm>


More information about the Tile-serving mailing list