Opened 14 years ago

Closed 5 years ago

#3319 closed defect (wontfix)

self intersection issue with polygonize routine.

Reported by: warmerdam Owned by: warmerdam
Priority: normal Milestone: closed_because_of_github_migration
Component: Algorithms Version: unspecified
Severity: normal Keywords: polygonize
Cc: ysid

Description

The attached zip file contains a small ascii grid file which produces a self-intersecting polygon when gdal_polygonize.py is run against it. I have also attached a picture showing the self-intersection.

I'm not sure how to fix this!

Attachments (2)

polygonize_self_intersection.zip (1.1 KB ) - added by warmerdam 14 years ago.
zip containing problem ascii grid, and generated shapefile.
polygonize.png (21.2 KB ) - added by warmerdam 14 years ago.
view of resulting polygon.

Download all attachments as: .zip

Change History (5)

by warmerdam, 14 years ago

zip containing problem ascii grid, and generated shapefile.

by warmerdam, 14 years ago

Attachment: polygonize.png added

view of resulting polygon.

comment:1 by warmerdam, 14 years ago

Cc: ysid added
Status: newassigned

comment:2 by Jukka Rahkonen, 9 years ago

St_MakeValid from SpatiaLite is converting the original self-intersecting polygon POLYGON (( 0 5, 3 5, 3 4, 2 4, 2 2, 3 2, 3 4, 5 4, 5 0, 0 0, 0 5 )) into a polygon with a hole POLYGON((0 5, 3 5, 3 4, 5 4, 5 0, 0 0, 0 5), (3 4, 2 4, 2 2, 3 2, 3 4))

I am not sure if gdal_polygonize should try to correct self-intersections during execution or as a post-process or just let them be.

comment:3 by Even Rouault, 5 years ago

Milestone: closed_because_of_github_migration
Resolution: wontfix
Status: assignedclosed

This ticket has been automatically closed because Trac is no longer used for GDAL bug tracking, since the project has migrated to GitHub. If you believe this ticket is still valid, you may file it to https://github.com/OSGeo/gdal/issues if it is not already reported there.

Note: See TracTickets for help on using tickets.