Opened 7 years ago

Closed 3 years ago

#833 closed defect (fixed)

IsSimple=true for self-touching polygon

Reported by: jratike80 Owned by: geos-devel@…
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 pramsey, 3 years ago

Milestone: 3.10.0

comment:2 by pramsey, 3 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.