Skip to content
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

Closed
qgib opened this issue Aug 13, 2012 · 7 comments
Closed
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Vectors Related to general vector layer handling (not specific data formats)

Comments

@qgib
Copy link
Contributor

qgib commented Aug 13, 2012

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.


@qgib
Copy link
Contributor Author

qgib commented Aug 15, 2012

Author Name: Alister Hood (@AlisterH)


Sorry, I forgot the attachment, and then the server went offline :(


  • 4780 was configured as Copy_of_AC_GIS_Data_13_8_2012.zip

@qgib
Copy link
Contributor Author

qgib commented Aug 16, 2012

Author Name: Giovanni Manghi (@gioman)


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.

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.


  • category_id was configured as Vectors
  • fixed_version_id was configured as Version 2.0.0

@qgib
Copy link
Contributor Author

qgib commented Aug 16, 2012

Author Name: Alister Hood (@AlisterH)


Giovanni Manghi wrote:

what is the chance for this happen? :)

Well, I encountered it the first time I used layers from a zip in real life :)

@qgib
Copy link
Contributor Author

qgib commented Aug 17, 2012

Author Name: Alister Hood (@AlisterH)


I forgot to say: I've now tested and the problem is the same on Linux.

@qgib
Copy link
Contributor Author

qgib commented Jun 28, 2014

Author Name: Jürgen Fischer (@jef-n)


  • fixed_version_id was changed from Version 2.0.0 to Future Release - Lower Priority

@qgib
Copy link
Contributor Author

qgib commented Apr 30, 2017

Author Name: Giovanni Manghi (@gioman)


  • regression was configured as 0
  • easy_fix was configured as 0

@qgib
Copy link
Contributor Author

qgib commented Mar 9, 2019

Author Name: Giovanni Manghi (@gioman)


End of life notice: QGIS 2.18 LTR
*
Source:*
http://blog.qgis.org/2019/03/09/end-of-life-notice-qgis-2-18-ltr/


  • resolution was changed from to end of life
  • status_id was changed from Open to Closed

@qgib qgib closed this as completed Mar 9, 2019
@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Vectors Related to general vector layer handling (not specific data formats) labels May 24, 2019
@qgib qgib added this to the Future Release - Lower Priority milestone May 24, 2019
JamesShaeffer pushed a commit to JamesShaeffer/QGIS that referenced this issue Nov 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Vectors Related to general vector layer handling (not specific data formats)
Projects
None yet
Development

No branches or pull requests

1 participant