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)"

Change History (2)

comment:1 by pramsey, 2 years ago

We're getting this behaviour from GEOS, maybe should change it upstream…

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

LINESTRING (0 0, 10 10)

Discussion at https://github.com/libgeos/geos/issues/662

Last edited 2 years ago by pramsey (previous) (diff)

comment:2 by robe, 2 years ago

Milestone: PostGIS 3.2.3PostGIS GEOS
Note: See TracTickets for help on using tickets.