[Tile-serving] [openstreetmap/osm2pgsql] Make simplify work with geoms other than linestrings (Issue #1764)

Jochen Topf notifications at github.com
Fri Sep 16 14:16:08 UTC 2022


The `simplify()` function currently only works for linestrings.

* It should also work for multilinestrings.
* It should also work for (multi)polygons.

The problem with simplify is

a) there are many different algorithms which have different properties (I believe only Douglas-Peucker is implemented in boost::geometry which we use)
b) simplification can make geometries invalid, which is bad and we usually guarantee that we only import valid geometries. This is especially bad for polygons. 

See #1663.

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

Message ID: <openstreetmap/osm2pgsql/issues/1764 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20220916/02d28914/attachment-0001.htm>


More information about the Tile-serving mailing list