-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merge tool bug when a shapefile is loaded multiple times #16483
Comments
Author Name: Giovanni Manghi (@gioman) it is a regression since 1.8? I'm not able to replicate the issue here, but maybe I'm doing it wrong.
|
Author Name: Olivier Dalang (@olivierdalang) Yes it's a regression, the problem does not show up in 1.8... Here (Windows 7) it seems to happen every time when following those steps. If confirmed, this should be a blocker, since it leads to data corruption. |
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Radim Blazek (@blazek)
What does it mean "reload the project"? Reopen project file or refresh display? |
Author Name: Olivier Dalang (@olivierdalang) Actually, when you refresh display only :
But actually, I'm just discovering that the shapefile seems in a deeper mess, even after reloading : if you create a new polygon, no matter what shape, it will take the shape of the result of the merge. Here's a screencast of the procedure : |
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Salvatore Larosa (@slarosa) is it still true ? following the above steps I did not get any crash ! |
Author Name: Giovanni Manghi (@gioman)
I don't think it causes crash, it causes data corruption. |
Author Name: Jürgen Fischer (@jef-n) Giovanni Manghi wrote:
So you can reproduce the problem? Just checking, if I should try harder...
|
Author Name: Giovanni Manghi (@gioman)
no I can't. Olivier still true for you? |
Author Name: Olivier Dalang (@olivierdalang) Hi ! The behavior changed a little bit but I still get data corruption (with master from yesterday, under Windows 7). Here's a screencast : https://www.dropbox.com/s/g70fkaus6j40vll/mergeBug4.avi |
Author Name: Jürgen Fischer (@jef-n) ok, I can reproduce it now. I suspect it's a file locking issue in OGR (might be tied to windows). Looking into GDAL now...
|
Author Name: Jürgen Fischer (@jef-n)
|
Author Name: Jürgen Fischer (@jef-n) Fixed in changeset "78b04df91a1b85ee70ff5b326980f480b3069d47".
|
Author Name: Jürgen Fischer (@jef-n) Jürgen Fischer wrote:
It was caused by locking. QGIS does a REPACK after deleting and that silently fails with current OGR. "GDAL pull request !#17":OSGeo/gdal#17 should fix this by adding an error message. reopening the original DBF if it can't be removed and cleaning up the @*_packed.dbf@. Nevertheless QGIS now checks if there still is a @*_packed.dbf@ to detect that the REPACK failed and reopens the dataset in that case. |
Author Name: Jürgen Fischer (@jef-n)
|
Author Name: Giovanni Manghi (@gioman) it is pretty easy to replicate this issue, it is just needed to "insist" a bit. Here two screencast, that as some point show that after removing a shape and re-adding it features are lost! The second show also a possible bug in the "split features" tool. |
Author Name: Jürgen Fischer (@jef-n)
|
Author Name: Giovanni Manghi (@gioman) after 4cf08c5 I really cannot make to replicate this issue. That commit solves also partially #19349 (but only for the case of edited features, still there is an issue with deleted ones). Please reopen if necessary.
|
Should technically be MultiPoint ((-20 -90), (-20 -88)), but it's nice to be forgiving and accept as wide a range of WKT formats as possible Fix qgis#16483 (cherry-picked from ef6c8b)
Author Name: Olivier Dalang (@olivierdalang)
Original Redmine Issue: 7540
Affected QGIS version: master
Redmine category:digitising
Hi !
When a Shapefile is loaded multiple times (either in the same project via "duplicate layer" or in two different QGis instances), there is a critical bug upon merging features.
Both merged parts simply disappear without any error (though it seems sometimes QGis crashes).
To reproduce:
Related issue(s): #17515 (relates)
Redmine related issue(s): 8822
The text was updated successfully, but these errors were encountered: