[postgis-tickets] [PostGIS] #5583: ST_Intersects fails with two valid geometries

PostGIS trac at osgeo.org
Thu Oct 19 00:34:26 PDT 2023


#5583: ST_Intersects fails with two valid geometries
---------------------------------+---------------------------
 Reporter:  kszafran             |      Owner:  pramsey
     Type:  defect               |     Status:  new
 Priority:  medium               |  Milestone:  PostGIS 3.4.1
Component:  postgis              |    Version:  3.3.x
 Keywords:  st_intersects, geos  |
---------------------------------+---------------------------
 I have bumped into an issue where two geometries that are valid according
 to `ST_IsValid` cause `ST_Intersects` to throw a `TopologyException`.
 Since the geometries are quite large, I will attach them as files.

 To reproduce, simply run `SELECT ST_Intersects(?, ?)` with the two
 geometries found in the attached files. It doesn't matter which geometry
 is first.

 {{{
 ERROR:  GEOSIntersects: TopologyException: side location conflict at
 -120.53632304660869 38.067099962053405. This can occur if the input
 geometry is invalid.
 }}}

 Tested on:
 {{{
 PostgreSQL 15.2 on x86_64-pc-linux-musl, compiled by gcc (Alpine
 12.2.1_git20220924-r4) 12.2.1 20220924, 64-bit
 POSTGIS="3.3.2 0" [EXTENSION] PGSQL="150" GEOS="3.11.1-CAPI-1.17.1"
 PROJ="9.1.0" GDAL="GDAL 3.5.3, released 2022/10/21" LIBXML="2.10.4"
 LIBJSON="0.16" LIBPROTOBUF="1.4.1" WAGYU="0.5.0 (Internal)" TOPOLOGY
 RASTER
 }}}
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5583>
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