[Tile-serving] [openstreetmap/osm2pgsql] Ensure that the result of geom::simplify() is a valid geom or null (PR #1722)
Jochen Topf
notifications at github.com
Sun Jul 31 07:40:05 UTC 2022
The simplification function can generate a linestring with a single
point in it, which wouldn't be a line any more. Return a null geometry
in that case.
You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/osm2pgsql/pull/1722
-- Commit Summary --
* Ensure that the result of geom::simplify() is a valid geom or null
-- File Changes --
M src/geom-functions.cpp (3)
M tests/test-geom-linestrings.cpp (41)
-- Patch Links --
https://github.com/openstreetmap/osm2pgsql/pull/1722.patch
https://github.com/openstreetmap/osm2pgsql/pull/1722.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/1722
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/osm2pgsql/pull/1722 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20220731/a50ea32a/attachment.htm>
More information about the Tile-serving
mailing list