[Tile-serving] [openstreetmap/osm2pgsql] Fix: Create point geometry from collection with single-node way (PR #1767)

Jochen Topf notifications at github.com
Sun Sep 18 19:05:40 UTC 2022


If a geometry collection is created from a relation, any way member will normally end up as linestring relation. But if there is only a single point in the resulting linestring (because the way only contained a single node or multiple nodes with the same position), that linestring would be invalid. In this case create a point geometry instead.
You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/osm2pgsql/pull/1767

-- Commit Summary --

  * Fix: Create point geometry from collection with single-node way

-- File Changes --

    M src/geom-from-osm.cpp (3)
    M tests/test-geom-collections.cpp (14)

-- Patch Links --

https://github.com/openstreetmap/osm2pgsql/pull/1767.patch
https://github.com/openstreetmap/osm2pgsql/pull/1767.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/1767
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/osm2pgsql/pull/1767 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20220918/2935802a/attachment.htm>


More information about the Tile-serving mailing list