Skip to main content
1 of 5
Egidi
  • 3.8k
  • 4
  • 32
  • 57

Empty a layer for each QGIS project

I have a layer with a customized form. Dropdowns, checboxes, etc. in a QGIS project which is kind of a template. This QGIS project will be copied a pasted every time a new study has to be done (usually twice a week).

The problem is that I want the layer to be empty for each proyect at the beginning, so that users can insert the data for the new study. The data once saved, should be visible only in that specific project. So all the projects will use the same layer, but each QGIS project will only see in that layer the data introduced in that specific project.

I thought of making a new field in the layer named "project name" and in layers Filter option and the following filter:

"project name"= @project_filename

@project_filename is a project varible which stores the name of the project but in layer's filter I can't use project variables...

Is there a way to achieve what I have explained?

Regards,

Egidi
  • 3.8k
  • 4
  • 32
  • 57