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

Virtual layers not working in Processing #22303

Closed
qgib opened this issue Feb 16, 2016 · 3 comments
Closed

Virtual layers not working in Processing #22303

qgib opened this issue Feb 16, 2016 · 3 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Processing Relating to QGIS Processing framework or individual Processing algorithms

Comments

@qgib
Copy link
Contributor

qgib commented Feb 16, 2016

Author Name: Paolo Cavallini (@pcav)
Original Redmine Issue: 14313
Affected QGIS version: master
Redmine category:processing/core
Assignee: Victor Olaya


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.

@qgib
Copy link
Contributor Author

qgib commented Feb 16, 2016

Author Name: Hugo Mercier (@mhugo)


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 ?

@qgib
Copy link
Contributor Author

qgib commented Feb 16, 2016

Author Name: Alexander Bruy (@alexbruy)


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 #19870

@qgib
Copy link
Contributor Author

qgib commented Feb 25, 2016

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


Fixed in changeset "f9d690516ec7a43bedce4babc80f7115f0478337".


  • status_id was changed from Open to Closed

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Processing Relating to QGIS Processing framework or individual Processing algorithms labels May 25, 2019
@qgib qgib closed this as completed May 25, 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! Processing Relating to QGIS Processing framework or individual Processing algorithms
Projects
None yet
Development

No branches or pull requests

1 participant