QGIS 3 Geometry – Skipping Invalid Geometries Without Fixing Them

geometryintersectionoverlapping-featurespoint-in-polygonqgis-3

In QGIS 3.16.14 I have a shapefile with multipolygons (flood risk map of the country) and another layer of points (buildings). I need to identify which of those points are inside those polygons and which are not.

So after researching the internet I tried Data Management Tools > Join attributes by location. But it failed, because of invalid geometries.

Then I tried to fix those invalid geometries, by answers to similar issues in this forum. I tried the "Check geometries" plugin, but it stopped responding.
I tried "Simplify" under Geometry tools reducing precision to 1 meter, but the simplified result still contained geometry errors.

I tried v.clean and after working overnight, it produced a list of 11 thousand errors, but I didn't know how to proceed. Apparently, those tools struggle because there is really a lot of errors.

Since I do not need a lot of precision, is there some tool in QGIS where I could check if my points are "approximately" inside those polygons while ignoring those geometry errors (but not skipping this check)?

Alternatively, if that geometry needs to be fixed, which geometry fixing approach would be most suitable for such a large number of errors, but where I don't need super large precision. Just need to check if a building is roughly in a flood zone or not.

Best Answer

  • Try buffering your polygons with 0 distance, sometimes it fixes geometry errors.
  • If you want to ignore the invalid geometries, you can set it Options - Processing - General: enter image description here
Related Question