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

Reply via email to