geos icon indicating copy to clipboard operation
geos copied to clipboard

GEOSGeom_setPrecision flattens multi-geometries

Open pramsey opened this issue 2 years ago • 2 comments

So no-op precision reductions end up having a spurious type change as well:

geosop -a "MULTILINESTRING((0 0,10 10))" -f wkt reducePrecision 1

LINESTRING (0 0, 10 10)

pramsey avatar Aug 16 '22 22:08 pramsey

@dr-jts thoughts?

pramsey avatar Aug 16 '22 22:08 pramsey

Reported in https://trac.osgeo.org/postgis/ticket/5208

pramsey avatar Aug 16 '22 22:08 pramsey

It seems reasonable to preserve the collection type of the input.

dr-jts avatar Mar 09 '23 20:03 dr-jts