QGIS 3.18 – Fixing the Difference Tool When Not Working with Points as Input Layer

differencesqgis

I am trying to run the difference algorithm with points as the input layer and a polygon as the overlay layer. I've tried many different point layers and polygon layers and it keeps giving me the error

GEOS geoprocessing error: difference failed.

It does work with a polygon input layer and a point overlay layer as well as polygons as both input and overlay layers.

This algorithm worked a year ago in a model I built but now it seems to have changed.

Edit I switched to 'extract by location' – disjoint. I am curious why the difference algorithm has changed. The mysteries of QGIS…

Best Answer

The "GEOS geoprocessing error: difference failed" issue with the "Difference" processing algorithm is now fixed in the developer version QGIS 3.27.0-Master starting from the 5a6b76a commit, and will be fixed in the stable versions starting from QGIS 3.26.1 and from QGIS LTR 3.22.10.

See https://github.com/qgis/QGIS/pull/49300.

Related Question