Clipping large shapefile in QGIS, GEOS geoprocessing error: intersection failed

clipoverlapping-featuresperformanceqgisshapefile

I am working on a large shapefile sourced from https://www.iucnredlist.org/resources/spatial-data-download. I cannot clip Fish and Plants (global file) in Freshwater groups species to a smaller extent (country level).

I tried clipping in QGIS but could not get the output. QGIS return an error: intersection failed. However, the clip works perfectly fine for all other datasets. I have successfully clipped other (smaller in size) shapefiles. I found a link where it suggested using 'Clip by extent' in GDAL, but it gave an empty shapefile having no data.

How can it be solved?

enter image description here

For the extent, let's say, I want to clip it to India's extent.
In QGIS, the error is:

enter image description here

Best Answer

In QGIS try:

  1. Fix geometries, save the output as geopackage.
  2. Create spatial index.
  3. Clip

If it still doesnt work:

  1. Multipart to Singlepart the spatial index output.

  2. Create spatial index

  3. Clip

Related Question