When using the 'Feature filter' within the Model Designer of QGIS (v. 3.16.10), if a filter is set to 'Final Output', the layer name is prefixed with 'OUTPUT_' e.g. if the Output Name of the filter is 'Woodland', the name of the layer that is added is 'OUTPUT_Woodland'. Is there a way to prevent this prefix being added?
Edit: It's raised as an issue here: https://github.com/qgis/QGIS/issues/45689
-
2It doesn't address your issue directly, but you could use the Rename Layer tool afterwards and have its output set to 'Final Output'.Matt– Matt2022年03月01日 11:38:39 +00:00Commented Mar 1, 2022 at 11:38
-
1Thanks for the idea. AFAIK the Rename Layer tool only works on layers that already exist in the project? So don't think it would be able to rename a layer that's created as part of the model. Tried it just now, and set the 'Feature filter' as a dependency within the 'Rename layer', but no luck.user2950747– user29507472022年03月01日 11:56:14 +00:00Commented Mar 1, 2022 at 11:56
-
1That's unfortunate, but good to know. Thanks.Matt– Matt2022年03月01日 12:01:27 +00:00Commented Mar 1, 2022 at 12:01
1 Answer 1
While the prefix is always added by default, you can just edit the resulting green output node and remove it there.