Bug report #16115
different (wrong) output of 'join attributes by location' when used in graphical modeller
|Affected QGIS version:||2.18.2||Regression?:||No|
|Operating System:||windows||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||24027|
It is a similar bug like #16111. When doing spatial analysis within a model it produces a wrong result. When doing it by hand it works.
I have 3 layers
- points (located along/nearby lines)
1/ I make a buffer (10m) of the polygon layer
2/ I do a spatial join from points and buffered polygons (take summary of intersecting features, statistic = mean)
3/ I make a slight buffer (0,5m)of the enriched points to make sure they will overlap the corresponding line
4/ I do a spatial join from the lines with the buffered points (take summary of intersecting features, statistic = mean)
Result: all statistics have
When I take the buffered points as the outcome of the model and do the spatial join with the linestrings by hand, I get the right results.
#1 Updated by Pieter Brusselman about 3 years ago
When removing unvalid geometries (by hand or implemented in the model) then it works.
But when joining by hand (without removing unvalid geometries) there is no problem.
I think the behaviour of doing it in a model or doing it by hand should be the same.