I have a geopackage layer that I want to always be used in an algorithm in the QGIS 3.6 graphical modeler. When I use the triple dots to navigate to the geopackage it doesn't give me the option to choose a layer in the geopackage. Is there syntax I can use in the file path to identify the layer? In the example screenshot I want to use the layer AOI_Poly2 from the geopackage AOI as the mask layer. It seems like it will work but it chooses the first polygon layer in the gpkg (AOI_poly). I have tried appending "|layername=AOI_poly2" to the file path but the dialog won't let me save. I am using windows 10.
I tried to create a string input, with the default value
/home/etienne/test.gpkg|layername=layer4, I can use this input as
Input layer, but yes I can't select it for
Mask layer. This looks like a bug to me.
What I could do is to use the
string concatenation algorithm. Use a string input with the geopackage path and append the name of the layer you would like to use. I don't know why, but the model will allow to use the output of the algorithm. It is a workaround. Maybe you can report this bug to QGIS on github?