6

I am attempting to perform a very simple join attributes by location between two shapefiles in the same projection. When I run it, I get an error message indicating that the algorithm could not be run because of errors in geometry. It further states that I can ignore errors by choosing that option. But I don't see that option in the window to run spatial join.

Error message [running a French QGIS here]:

L'entité (1771) a une géométrie non valide. Veuillez réparer la géométrie ou modifier le paramètre de traitement dans l'option "Ignorer les fonctionnalités d'entrée non valides". Execution failed after 2.58 seconds

Screenshot of options for running join by location:

enter image description here

One of the shapefiles (the target shapefile) has features where one polygon is located inside the other polygon. (When I run validate geometry, the error messages look like this: Le polygone 2 est à l'intérieur du polygone 0 [Polygon 2 is inside polygon 0].) This isn't an geographical "error" in the sense that a single feature in the database has some smaller polygons within larger polygons that should be considered a single feature and should not be considered as two separate features in the data table. Thus, I can't "fix" the geometry error without creating a database error. As mentioned in this post, this is common in my file and difficult to work around.

2
  • a polygon can not contain another polygon and be valid, do you mean a hole in the polygon, in which case you can fix it.
    – Ian Turton
    Commented May 25, 2018 at 9:09
  • indeed. The polygons are not valid because they contain another polygon. The database also contains holes in polygons, which are also correctly representing the features even if they are considered no valid geometries.
    – kl-higgins
    Commented May 25, 2018 at 14:09

1 Answer 1

19

From Settings -> Options -> Processing tab, expand out the General setting.

Look for "Invalid features filtering" and set it to "Do not filter"

enter image description here

1
  • Great, I did not know this option. Thanks a lot.
    – GeoGyro
    Commented Jul 4, 2019 at 13:02

Not the answer you're looking for? Browse other questions tagged or ask your own question.