Bug report #6083
Corrupt datastore upon edit
|Affected QGIS version:||master||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:||worksforme|
|Crashes QGIS or corrupts data:||Yes||Copied to github as #:||15437|
When editing a shapefile containing edges, the resulting datastore cannot be read completely by the Geotools java library.I have included a 3 shapefiles.
- original.shp: my original file, containing 31 line features.
- corrupt.shp: the original file after editing one of the lines so that it contains an additional intermediary point.
- corrupt resaved.shp: the corrupt file, saved using the "save as" dialog.
When using the GeoTools library to count the number of features in each of the shapefiles, the corrupt.shp will have only 21 features while the other 2 files report 31 features. A logging error will also be shown when reading the corrupt.shp file.
I have included my java class that shows this error.
I am using Geotools 2.6.6, and have tested this using QGis 1.7.0, 1.7.4 and 1.8.0.
#4 Updated by Giovanni Manghi about 7 years ago
Dieter De Paepe wrote:
I am unsure if the "Feedback" status relates to me or not...
yes to you
In any case, I do not have an environment set up to test whether or not it works with OGR.
if you have qgis installed you have also ogr installed, so you can test.
please leave feedback.
#5 Updated by Giovanni Manghi about 7 years ago
- Status changed from Feedback to Closed
- Resolution set to worksforme
I tried to edit in many ways your "original" vector and in no case I had a corruption. I'll close this as it seems a local issue, anyway if you have the exact procedure on how to replicate the issue, please describe it and reopen the ticket.