-
-
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
Can't load layers from a zip a 2nd time, after it is modified (need to restart QGIS) #15507
Comments
Author Name: Alister Hood (@AlisterH) Sorry, I forgot the attachment, and then the server went offline :(
|
Author Name: Giovanni Manghi (@gioman)
what is the chance for this happen? :) Anyway I guess that this would be better to be fixed, but not really sure this is a qgis issue.
|
Author Name: Alister Hood (@AlisterH) Giovanni Manghi wrote:
Well, I encountered it the first time I used layers from a zip in real life :) |
Author Name: Alister Hood (@AlisterH) I forgot to say: I've now tested and the problem is the same on Linux. |
Author Name: Jürgen Fischer (@jef-n)
|
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Giovanni Manghi (@gioman) End of life notice: QGIS 2.18 LTR
|
Fixes qgis#15507 Includes automated test.
Author Name: Alister Hood (@AlisterH)
Original Redmine Issue: 6193
Affected QGIS version: master
Redmine category:vectors
Attached is a small example zip.
Don't extract it - use the new ability in QGIS (since 1.8) to load the shp layers from inside the zip. Yes, the layers are empty ;)
Click "File>New Project".
Open the zip file in your favourite zip software, and delete the xml files (they are some sort of ESRI metadata file).
Try to load the layers from the zip file again - you will get an (incorrect) error message for each layer that it "is not a valid or recognized data source".
Restart QGIS and you will be able to load the layers successfully.
I guess this is caused by some sort of caching that is going on. But is it a QGIS problem, or an upstream problem?
I have only tested with master and in Windows so far.
A likely "use case" is when a website allows a user to select some layers and geographic area and download a zip of the data. They may then decide to add more layers or increase the area and download a new zip, replacing the old one. Unless they restart QGIS before loading layers from the new zip, they will get the incorrect error message, and be confused, perhaps thinking that the second download is corrupt.
The text was updated successfully, but these errors were encountered: