[Qgis-developer] Load zipped shapefiles with python
Ziegler Stefan
Stefan.Ziegler at bd.so.ch
Thu Nov 27 04:08:03 PST 2014
Hi
Is it possible to load zipped shapefiles with python? I have some zip files with several shapefiles in it. I tried something like this:
vlayer = QgsVectorLayer("/vsizip/home/stefan/Downloads/2546.zip/lfp3.shp", LFP3, "ogr")
But the layer is not valid.
Regards
Stefan
Freundliche Grüsse
Stefan Ziegler
Kantonsgeometer
Amt für Geoinformation
Amtliche Vermessung
Rötistrasse 4
4500 Solothurn
Telefon +41 32 627 75 96
Telefax +41 32 627 75 98
stefan.ziegler at bd.so.ch
http://www.so.ch
More information about the Qgis-developer
mailing list