Opened 23 months ago

Closed 23 months ago

Last modified 23 months ago

#5163 closed defect (fixed)

ST_OrientedEnvelope goes into infinite loop when given a straight line

Reported by: robe Owned by: pramsey
Priority: blocker Milestone: PostGIS GEOS
Component: postgis Version: 3.1.x
Keywords: Cc:

Description (last modified by robe)

SELECT ST_OrientedEnvelope(st_geomfromtext('LINESTRING(-99.48710639268086 34.79029839231914,-99.48370699999998 34.78689899963806,-99.48152167568102 34.784713675318976)',4326));

However this one works:

SELECT ST_OrientedEnvelope('LINESTRING(1 2,1.5 2,2 2)'::geometry);

Tested against latest released GEOS and PostGIS develop branch.

and also

POSTGIS="3.1.4 ded6c34" [EXTENSION] PGSQL="140" GEOS="3.9.1-CAPI-1.14.2" PROJ="8.0.1" GDAL="GDAL 3.3.0, released 2021/04/26" LIBXML="2.9.1" LIBJSON="0.15" LIBPROTOBUF="1.3.2" WAGYU="0.5.0 (Internal)" RASTER PostgreSQL 14.1 on aarch64-unknown-linux-gnu, compiled by gcc (GCC) 7.3.1 20180712 (Red Hat 7.3.1-6), 64-bit

Change History (5)

comment:1 by robe, 23 months ago

Description: modified (diff)
Milestone: PostGIS 2.5.7PostGIS GEOS

comment:2 by robe, 23 months ago

Summary: ST_OrientedEnvelope goes into infinite loop when giving a straight lineST_OrientedEnvelope goes into infinite loop when given a straight line

comment:3 by mdavis, 23 months ago

This is a GEOS issue, and also JTS.

JTS fix is JTS-875.

GEOS 3.11 fix is GEOS-616. Will be backported to 3.10 and probably 3.9.

comment:4 by robe, 23 months ago

Resolution: fixed
Status: newclosed

comment:5 by robe, 23 months ago

This was backported and recently released also in 3.10.3 and 3.9.3 both released 6/2/2022

Note: See TracTickets for help on using tickets.