[Tile-serving] [osm2pgsql-dev/osm2pgsql] Flex: call `:get_bbox()` on geometry, not on parameter table (object) (Issue #2219)
Jochen Topf
notifications at github.com
Mon Aug 12 13:55:50 UTC 2024
I agree that the `:get_bbox()` handling is inconsistent. There are two reasons for that:
1. `get_bbox()` existed before the advanced geometry handling, so in some sense it is a left-over.
2. It is more effort to first create the geometry and then get the bounding box from it than just get the bounding box directly from the object.
All of this doesn't mean that it wouldn't make sense to have an `:envelope()` function that works on any geometry and returns the envelope.
All of this would be very easy to implement. Frankly the biggest problem with this is a question of data types. Usually (i.e. in PostGIS) the envelope function returns another geometry object. This would be great for importing into the database. But what if you need the values in Lua, in the same way `get_bbox()` returns them? It is unclear to me what users want here and how best to handle that. Any suggestions?
--
Reply to this email directly or view it on GitHub:
https://github.com/osm2pgsql-dev/osm2pgsql/issues/2219#issuecomment-2284059731
You are receiving this because you are subscribed to this thread.
Message ID: <osm2pgsql-dev/osm2pgsql/issues/2219/2284059731 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20240812/8c4def18/attachment.htm>
More information about the Tile-serving
mailing list