[postgis-tickets] [PostGIS] #4731: Garden crash ST_WrapX with new GEOS 3.9 Overlay logic
PostGIS
trac at osgeo.org
Thu Jul 30 08:59:00 PDT 2020
#4731: Garden crash ST_WrapX with new GEOS 3.9 Overlay logic
----------------------+--------------------------
Reporter: robe | Owner: pramsey
Type: defect | Status: new
Priority: blocker | Milestone: PostGIS GEOS
Component: postgis | Version: master
Resolution: | Keywords:
----------------------+--------------------------
Comment (by pramsey):
The core of this is a change in behavior. This result comes from
overlayng:
{{{
50
select st_astext(st_difference('LINESTRING(-11.1111111 70,70
-11.1111111)'::geometry, 'LINESTRING (20.1 90, 20.1 -90)'::geometry));
st_astext
-----------------------------------------------------------
LINESTRING(-11.1111111 70,20.1 38.7888889,70 -11.1111111)
(1 row)
}}}
The lwgeom_split_wrapx function expects a split (which under the covers is
a difference of a line away from an input) to return a collection, which
it then iterates on. Instead we hand it a unitary object... which it then
goes and tries to split again. Hence the infinite recursion. We need
probably the old behaviour back, so that a GEOS 3.9 install doesn't break
older software.
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/4731#comment:9>
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