[Tile-serving] [osm2pgsql-dev/osm2pgsql] Allow detecting duplicate nodes in ways when creating geometry (PR #2473)
Jochen Topf
notifications at github.com
Sat May 16 16:22:51 UTC 2026
When linestrings or polygons are created from ways, duplicate nodes are removed automatically. Generally this is what you want. But sometimes it makes sense to be able to detect this situation, for instance when creating some debug output.
The information is available on the C++ side anyway, this change exposes this information in the Lua code as a second return parameter of the as_linestring and as_polygon functions which can be ignored during normal use.
You can view, comment on, or merge this pull request online at:
https://github.com/osm2pgsql-dev/osm2pgsql/pull/2473
-- Commit Summary --
* Allow detecting duplicate nodes in ways when creating geometry
-- File Changes --
M src/geom-from-osm.cpp (12)
M src/geom-from-osm.hpp (4)
M src/output-flex.cpp (19)
M tests/bdd/flex/geometry-linestring.feature (43)
-- Patch Links --
https://github.com/osm2pgsql-dev/osm2pgsql/pull/2473.patchhttps://github.com/osm2pgsql-dev/osm2pgsql/pull/2473.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/osm2pgsql-dev/osm2pgsql/pull/2473
You are receiving this because you are subscribed to this thread.
Message ID: <osm2pgsql-dev/osm2pgsql/pull/2473 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20260516/17a261b1/attachment.htm>
More information about the Tile-serving
mailing list