qgis / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
https://qgis.org
GNU General Public License v2.0
10.32k stars 2.97k forks source link

Grass processing algorithms fail if using vsizip raster layers as input #57845

Open AlisterH opened 2 months ago

AlisterH commented 2 months ago

What is the bug or the crash?

Grass processing algorithms fail if using raster vsizip input layers. I presume any other vsi*** source would also fail. I have not checked vector vsizip, but this ticket indicates they are intended to be handled OK: #29001

Could be related to #50588

Steps to reproduce the issue

Get or make a zip file containing one or more geotiffs. Drag and drop into QGIS and load the layer. Try to run a grass algorithm which takes raster inputs. It will fail. e.g. r.patch and r.watershed both fail with this as the key error message:

ERROR: Unable to open datasource <\vsizip\D:\Alister\Downloads\lds-new-zealand-2layers-GTiff-SHP.zip\waikato-lidar-1m-dem-2021\waikato-lidar-1m-dem-2021.tif>

Versions

QGIS version
3.36.3-Maidenhead
QGIS code revision
2df96554
Qt version
5.15.13
Python version
3.12.3
GDAL/OGR version
3.9.0
PROJ version
9.4.0
EPSG Registry database version
v11.004 (2024-02-24)
GEOS version
3.12.1-CAPI-1.18.1
SQLite version
3.45.1
PDAL version
2.6.3
PostgreSQL client version
16.2
SpatiaLite version
5.1.0
QWT version
6.2.0
QScintilla2 version
2.14.1
OS version
Windows 10 Version 2009

Active Python plugins
changeDataSource
3.1
cigeoe_toggle_vertex_visibility_
1.0
civilplan
1.0
coveragebuilder
version 0.5.1
Equal_area_slope_QGIS_Plugin
0.1
FlowEstimator
0.21
geoprocalgos
3.40
GeorefExtension
3.0.5
ImportPhotos
3.0.6
LayerBoard
1.0.1
lftools
1.12.10
MemoryLayerSaver
5.0.2
merge_selected_features
0.1
nominatim
1.4.5
pathfinder
version 0.4.2
plugin_reloader
0.9.4
precisioncursor4qgis-main
1.1.D
QCopycanvas
0.7
qgis_hub_plugin
0.1.2
quick_map_services
0.19.34
SaveAllScript
1.0
Serval
3.32.0
stats_by_polygon
1.0
StyleLoadSave
1.0
valuetool
3.0.19
grassprovider
2.12.99
processing
2.12.99

Supported QGIS version

New profile

Additional context

I believe this is a longstanding issue; I thought I filed a ticket for it years ago, but I can't see one anywhere.

agiudiceandrea commented 2 months ago

https://github.com/qgis/QGIS/issues/50588#issuecomment-2186019831.