[Qgis-user] How to use Package layers algorithm in a model when layers to package have same name ?
Yann Voté
ygversil at lilo.org
Tue Oct 20 03:36:20 PDT 2020
Hi list,
I'm trying to design a model whose last step is to package 3 layers into
one GeoPackage using the "Package layers" algorithm. The 3 layers are
outputs from three distinct "Refactor fields" algorithms respectively.
When I run the model, I get only one layer into the GeoPackage named
"Refactored". I believe this is because all three "Refactor fields"
algorithms each outputs a layer named "Refactored". Thus the "Package
layers" algorithm writes a layer named "Refactored", the overwrites it
with the second layer, and overwrites the second one with the third
layer. At the end only the last layer written is seen in the GeoPackage.
Is there a way to work around this ?
I've tried to change output name of the "Refactor fields" algorithm, but:
* it does not work if output type is "Model output" (layer name in
Geopackage still is "Refactored"),
* it does work if output type is "Value", but then it creates
intermediate GeoPackages that must be deleted manually.
Thanks.
--
Yann Voté - ygversil at lilo.org
More information about the Qgis-user
mailing list