I have two layers to make an intersection. I use QGIS 2.18.22 and Vector - Geoprocessing Tools - Intersect - run is not working, because "Input layer A contains invalid geometries. Unable to complete intersection algorithm." Anyone having any idea how to fix it? Layers are here: https://uloz.to/tam/_BGkW3f7iUrDm
2 Answers
Upgrade your version to QGIS 3.2.
Then, in the toolbox (Menu processing -> Toolbox) you will find a tool called "fix geometries". Use this tool bevor making the intersection
-
1Used QGIS 3.2, Menu Processing, Toolbox, Fix geometries works. However, Vector, Geoprocessing Tools, Intersection doesn´t work then. The note is just: "GEOS geoprocessing error: intersection failed."– StefanJul 26, 2018 at 10:10
-
2May be this 3 points: 1. You have to use the intersection geoprocess with the corrected layer. 2. All your layers must have the same CRS (coordinate reference system) 3. Fix first all the layers you will use Jul 26, 2018 at 10:45
-
2Not these 3 problems in my case. When working with just a few polygons, it works. The problem is for the layers with many polygons which I had merged together before. After a few minutes it tells: "GEOS geoprocessing error: intersection failed." However, when first using Vector, Geometry Tolls, Multipart to Singleparts, the Intersection feature works.– StefanJul 26, 2018 at 12:22
In QGIS 2.18 you can use GRASS v.clean from the processing toolbox to fix invalid geometry.