Attempted to extract raster by mask layer in QGIS 2.18.15 and for one of my shapefiles, the command could not be executed. The error message reads "Warning 1: Ring Self-intersection at or near point 97.520362854004077 18.494590759277401 ERROR 1: Cutline polygon is invalid."
I executed the Check Validity function, and identified the source of this self-intersection.
In trying to correct this 1 error, I have tried the following
- (1) added a zero distance buffer using QGIS default plugin
- (2) added a zero distance buffer using GRASS v.buffer.distance
- (3) used multiple permutations of GRASS's v.clean & v.clean.advanced
But none of the above has rectified this issue i.e. when I run the Check Validity function, the error still persists. I have browsed through several threads within this forum but their solutions don't seem to work for me.
POLYGON (( 0 160, 60 160, 60 120, 30 120, 40 140, 20 140, 30 120, 0 120, 0 160 ))
andPOLYGON (( 30 120, 0 120, 0 160, 60 160, 60 120, 30 120 ), ( 30 120, 40 140, 20 140, 30 120 ))
? Which one QGIS does not like? Difference is if outer ring is touching itself at one point or if there is an inner ring that is touching the outer ring.