Opened 2 years ago
Last modified 2 years ago
#5208 new defect
ST_ReducePrecision on a MultiPolygon always returns Polygon
Reported by: | tudorbarascu | Owned by: | pramsey |
---|---|---|---|
Priority: | low | Milestone: | PostGIS GEOS |
Component: | postgis | Version: | 3.2.x |
Keywords: | Cc: |
Description
Hello. This outputs polygon. Is this by design? Thank you
SELECT ST_AsText(ST_ReducePrecision(ST_Multi('POLYGON ((10 10, 15 15, 15 10, 10 10))'), 0.1))
PostgreSQL 14.4 on ubuntu 22.04
POSTGIS="3.2.2 628da50" [EXTENSION] PGSQL="140" GEOS="3.10.2-CAPI-1.16.0" PROJ="8.2.1" LIBXML="2.9.13" LIBJSON="0.15" LIBPROTOBUF="1.3.3" WAGYU="0.5.0 (Internal)"
Note:
See TracTickets
for help on using tickets.
We're getting this behaviour from GEOS, maybe should change it upstream...
Discussion at https://github.com/libgeos/geos/issues/662