[Tile-serving] [openstreetmap/osm2pgsql] Fix: Create point geometry from collection with single-node way (PR #1767)
Sarah Hoffmann
notifications at github.com
Wed Sep 21 15:06:21 UTC 2022
So it turns out that this is not the only case where a geometry might be missing in the collection. A way or its geometry information might also be missing because the database was created from an extract that doesn't have the way in question. If we can't avoid missing members, then it would imo better to have the same behaviour for invalid and missing ways: simply drop the member from the collection.
The consequence would unfortunately be that @mboeringa's use-case doesn't work anymore with the `as_geometrycollection()`. Or rather: it only works when the relation is complete. The good news is that it is possible to detect the situation (mismatch between number of geometries and number of node and way members), so problematic relations can be dropped. It is just not possible to fix the error. We need a different mechanism here to collect members.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/1767#issuecomment-1253844620
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/osm2pgsql/pull/1767/c1253844620 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20220921/c425902d/attachment.htm>
More information about the Tile-serving
mailing list