Bug report #5070
Geometry validity does not work well
|Affected QGIS version:||master||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:||fixed|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||14837|
I tested the geometry validity against a dangled polygon, and it detected no errors. In general, the tool seems to be rather inefficient, not detecting really invalid geometries, thus misleading for the user. Pending an overall improvement, better warn the user that the results are incomplete.
#2 Updated by Salvatore Larosa over 8 years ago
- Target version set to Version 1.8.0
- Priority changed from Normal to High
AFAIK, there is not a tool for that, so it would be important to understand why it does not work!
I did some test and can confirm that in python-console it works either the "isGeosValid()" function or "isGeosEmpty" one.
While the "validateGeometry()" function returns an empty list! Strange! Could be the problem here??
 if not (geom.isGeosEmpty() or geom.isGeosValid() ) :  lstErrors.append((feat.id(), list(geom.validateGeometry())))