Opened 7 years ago
Closed 3 years ago
#833 closed defect (fixed)
IsSimple=true for self-touching polygon
| Reported by: | jratike80 | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 3.10.0 |
| Component: | Default | Version: | 3.6.0 |
| Severity: | Unassigned | Keywords: | |
| Cc: |
Description
Issue was found from PostGIS 2.3 with these tests:
select ST_IsValid(
ST_GeomFromText(
'POLYGON (( 320 620, 460 620, 460 500, 320 620, 320 500, 180 500, 180
620, 320 620 ))'
));
Result: "f".
select ST_IsValidReason(
ST_GeomFromText(
'POLYGON (( 320 620, 460 620, 460 500, 320 620, 320 500, 180 500, 180
620, 320 620 ))'
));
Result: "Ring Self-intersection[320 620]"
select ST_IsSimple(
ST_GeomFromText(
'POLYGON (( 320 620, 460 620, 460 500, 320 620, 320 500, 180 500, 180
620, 320 620 ))'
));
Result: "t"
JTS IsSimpleOp used to return trivially "true" for all polygons but since SVN revision 662 Sept 2012 self-intersecting rings are tested. GEOS should do the same.
See discussion in thread https://lists.osgeo.org/pipermail/postgis-users/2017-May/042102.html
Change History (2)
comment:1 by , 4 years ago
| Milestone: | → 3.10.0 |
|---|
comment:2 by , 3 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.

This will be fixed in 3.10 https://github.com/libgeos/geos/commit/71369610d46d7962bdff096d1bb1346006d9b7cf