Bug report #14085

Delete a feature in shapefile

Added by Fabien Del Olmo almost 4 years ago. Updated almost 4 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Vectors
Affected QGIS version:2.12.0 Regression?:No
Operating System:Windows Easy fix?:No
Pull Request or Patch supplied:No Resolution:duplicate
Crashes QGIS or corrupts data:No Copied to github as #:22095

Description

On Windows with QGIS 2.10 or 2.12 (2.8?) there is a big bug when we delete a feature. The data associated with this object is not deleted from the .shp file.

1) Create a new Shapefile (ponct).
2) Create 3 points
3) Delete the 2th point.

The .dbf contains 2 rows (it's ok) but the file "*.shp" is strictly the same as before the deletion.
'ogrinfo -ro -so -al test_qgis.shp' say : "Feature Count: 3"
After a "save as" on this layer, the file becomes good, we have 2 features in the .shp.

On linux and QGIS 2.12.0, there is no problem.

Thread in french : http://georezo.net/forum/viewtopic.php?pid=277247#p277247
Related issue : #11007 ?

test_delete_feature_shp.zip - Before & After deletion (2.64 KB) Fabien Del Olmo, 2016-01-11 11:23 AM


Related issues

Related to QGIS Application - Bug report #11007: Deleted/edited features within SHAPEFILE are still recogn... Closed 2014-08-05

History

#1 Updated by Saber Razmjooei almost 4 years ago

  • Resolution set to duplicate
  • Status changed from Open to Closed

This is a well-known bug unfortunately #11007.
Please update the current bug.

Also available in: Atom PDF