[postgis-tickets] [PostGIS] #5390: TopologyException: side location conflict on ST_IsValid-geometry
PostGIS
trac at osgeo.org
Fri May 26 08:43:13 PDT 2023
#5390: TopologyException: side location conflict on ST_IsValid-geometry
----------------------+--------------------------
Reporter: tjay | Owner: pramsey
Type: defect | Status: new
Priority: medium | Milestone: PostGIS GEOS
Component: postgis | Version: 3.1.x
Resolution: | Keywords:
----------------------+--------------------------
Comment (by mdavis):
GEOS 3.12 (the next release) contains a fix for this problem.
A party-effective workaround for this is to compute the intersects on the
boundary (`ST_Boundary`) of each geometry instead. This works as long as
one geometry is not wholly contained in the other. To handle that case
(if needed) you could also test for intersection of one point of each
geometry against the other.
{{{
SELECT ST_Intersects(
ST_Boundary('POLYGON ((335645.7810000004 5677846.65, 335648.6579999998
5677845.801999999, 335650.8630842535 5677845.143617179, 335650.77673334075
5677844.7250704905, 335642.90299999993 5677847.498, 335645.7810000004
5677846.65))'),
ST_Boundary('POLYGON ((335642.903 5677847.498, 335642.894 5677847.459,
335645.92 5677846.69, 335647.378 5677852.523, 335644.403 5677853.285,
335644.374 5677853.293, 335642.903 5677847.498))')
);
}}}
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5390#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