Bug report #21349
QGIS Clip and Difference - GEOS geoprocessing error: intersection failed.
|Affected QGIS version:||3.5(master)||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:||invalid|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||29167|
Trying to clip and difference vector layers. But it fails.
Tride both Geopackage and SHP same result.
The datasets has been checked in topology checker.
Attached file. Use layer gravplads against gravsted
#6 Updated by Giovanni Manghi over 2 years ago
Just one more case of the inconsistency that we have in the tools to check geometries: as I raised a few times in the past they all yields different results.
If you fix your layers with the "fix geometries" tool (that is based on the excellent st_makevalid) then the operation runs without issues...
#8 Updated by Giovanni Manghi over 2 years ago
Lene Fischer wrote:
So sorry - I thought that checking with the topology checker was the best method to control features.
the topology checker (that despite the name can also check for geometry issues) is great, as a simple way foe users to choose what they want to check, it does not fix anything... so is bit limited
the geometry checker (that despite the name can also check for topolgy issues) gives a lot of options, can fix errors... but honestly is not a great ux
the two above usually yeld slightly different results
anyway, if you want to fix geometries without worrying about parameters, etc... just use postgis st_makevalid (st_IsValidReason if you want to know what error is) or its QGIS incarnation.
#9 Updated by Giovanni Manghi over 2 years ago
- Status changed from Feedback to Closed
- Resolution set to invalid
I'm closing Lene because the real problem is the total inconsistency we have among the tools that can check/fix geometries. This issue should really need to be addressed, not even sure if a ticket would be the right starting point.