5

I want to intersect two layers (shapefiles) with QGIS 2.18. For both layers, I tested validity with

  • QGIS Vector / Vector Tools / Check validity and
  • GRASS v.build.check (with default parameters)

both tests report no errors for both layers, but QGIS Intersection reports invalid geometry for one or more input features.

The two layers may have some boundaries, that should be equal, but may actually have slight differences (unprecise manual digitalisation of one layer) possibly resulting in several very small slices.

What do you recommend me to try?

underdark
  • 84,148
  • 21
  • 231
  • 413
Bartli
  • 199
  • 1
  • 6

4 Answers4

4

SAGA - vector polygon tools - intersection is my friend. It creates a new Layer without stopping because of errors. Now, I have to delete features with small areas from the new layer.

Bartli
  • 199
  • 1
  • 6
2

Maybe this works (Fixing invalid polygon ..):

https://anitagraser.com/2017/08/29/fixing-invalid-polygon-geometries/

pnz1337
  • 1,565
  • 1
  • 13
  • 25
2

Or another problem could be that, you have multipolygons, therefore you have to explode them before intersecting:

Vector / Geometry Tools / Multipart to Singleparts

pnz1337
  • 1,565
  • 1
  • 13
  • 25
  • This felt like a good starting point to me, but it did not solve the problem. An explanation as to why this might be the cause could be helpful. – gktscrk Oct 27 '19 at 11:11
1

Saga gis intersect works, from my experience, as long as intersect does not include any of the faulty polygons. For me worked Fix geometry tool in QGIS3. I suspect in my case the problem was self intersecting poygons. Similar issue: Intersection error QGis - invalid geometries that are actually valid.

Mat
  • 1,588
  • 1
  • 8
  • 18