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/[email protected]>
_______________________________________________
Tile-serving mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/tile-serving