Bug report #5788
fTools Check geometry doesn't find NULL geometry features
|Affected QGIS version:||master||Regression?:|
|Operating System:||Easy fix?:|
|Pull Request or Patch supplied:||No||Resolution:||invalid|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||15280|
The check geometry tool doesn't report features without any points...
The Buffer_problem_result shape file in attachment can help to reproduce...
PS: tested in versions 1.8 an 1.7.4
#3 Updated by Giovanni Manghi over 9 years ago
- Resolution set to invalid
- Status changed from Open to Closed
I see your point, but the "Check geometry validity" tool does what it advertise, it checks if the geometries are right or wrong. In this case you have a vector with a few records in the table of attributes with no geometries associated, and this is admitted (or am I wrong?). Please reopen if necessary.
#5 Updated by Giovanni Manghi over 9 years ago
Daniel Vaz wrote:
Please, can you attach some dataset to reproduce the bug?
the sample is attached to this ticket.
One layer is the input for a negative buffer operation. As a few features are smaller than then buffer distance, then they disappear, but the records in the table of attributes are not deleted. the resulting vector is then inconsistent, as it has records in the table of attributes but no geometry associated.
This issue has been described in another ticket.
This ticket is invalid anyway because the tool do checks the validity of existing features, does not check the validity of non existing ones :)
#8 Updated by Giovanni Manghi over 9 years ago
Pieter Roggemans wrote:
I looked it up, and indeed a null polygon is valid according to the specs of the shapefile format.
ok good to know, anyway I think that the buffer tool should delete the records of non existing polygons when it comes to negative buffers. Daniel posted a patch for this.