[postgis-tickets] [PostGIS] #5163: ST_OrientedEnvelope goes into infinite loop when giving a straight line

PostGIS trac at osgeo.org
Wed May 25 10:04:59 PDT 2022


#5163: ST_OrientedEnvelope goes into infinite loop when giving a straight line
----------------------+--------------------------
  Reporter:  robe     |      Owner:  pramsey
      Type:  defect   |     Status:  new
  Priority:  blocker  |  Milestone:  PostGIS GEOS
 Component:  postgis  |    Version:  3.1.x
Resolution:           |   Keywords:
----------------------+--------------------------
Changes (by robe):

 * milestone:  PostGIS 2.5.7 => PostGIS GEOS


Old description:

> {{{
> 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
> }}}

New description:

 {{{
 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
 }}}

--
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5163#comment:1>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-tickets mailing list