Bug report #14313

Virtual layers not working in Processing

Added by Paolo Cavallini about 2 years ago. Updated almost 2 years ago.

Status:Closed
Priority:Normal
Assignee:Victor Olaya
Category:Processing/Core
Affected QGIS version:master Regression?:No
Operating System:Debian Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No

Description

for instance:

GDAL command:
gdal_rasterize -a attr -ot Float32 -tr 100 100 -a_nodata -9999 -co
COMPRESS=DEFLATE -co PREDICTOR=1 -co ZLEVEL=6 -l
point?crs=EPSG:3003&memoryid={8e06ae07-51d0-415f-81e2-2565db34cace}
point?crs=EPSG:3003&memoryid={8e06ae07-51d0-415f-81e2-2565db34cace}
/tmp/processing543c8fb958c34d0a8b161fc7f40b98d0/33d7bfb8c05c4d98a60d365fdebcdcf4/OUTPUT.tif

GDAL command output:
/bin/sh: 1:
/tmp/processing543c8fb958c34d0a8b161fc7f40b98d0/33d7bfb8c05c4d98a60d365fdebcdcf4/OUTPUT.tif:
not found
/bin/sh: 1: point?crs=EPSG:3003: not found
Missing source or destination.

They should preferably be enabled for analyses, as they are very convenient for on the fly analyses. If this is not yet possible, they should not appear on the dropdown.

Associated revisions

Revision f9d69051
Added by Jürgen Fischer almost 2 years ago

new spatialite layer: allow tables with only primary key and geometry (fixes #14313)

History

#1 Updated by Hugo Mercier about 2 years ago

Hi.
Apparently you are using a memory layer as input, right ? But the result would be similar with a virtual layer.
Actually with anything that is not loaded by ogr.

The rasterize algorithm expects a vector layer opened with ogr, but the dropdown displays any vector layer, whatever the provider.

Algorithms should somehow declare which types of vector layers they can read. Just an idea: an optional parameter to ParameterVector to list the acceptable provider keys ? Victor what do you think ?

#2 Updated by Alexander Bruy about 2 years ago

Algorithms should somehow declare which types of vector layers they can read. Just an idea: an optional parameter to ParameterVector to list the acceptable provider keys ? Victor what do you think ?

This is already in TODO, see #11616

#3 Updated by Jürgen Fischer almost 2 years ago

  • Status changed from Open to Closed

Also available in: Atom PDF