2

I have a layers, which are filtered by query builder.

Next I want to create virtual layer (VL), that is based on that filtered layers. Sadly, I'm getting VL with all features from the layers. Query builder is ignored.

Is there a way to force VL to use an output from query builder, and not all features?

6
  • 2
    What about using the same query as an SQL command when creating your virtual layer?
    – Joseph
    Commented Sep 24, 2019 at 9:55
  • Yeah, I've tried that and it works just fine, but the problem is I need that original layer to be filtered. So I would have ended up with a duplicated query. I want to avoid that.
    – DIV
    Commented Sep 24, 2019 at 10:04
  • 1
    How are you creating a virtual layer? Could you edit your post to include some code?
    – Joseph
    Commented Sep 24, 2019 at 10:19
  • So far, I've been testing this through gui. The last step is to do that by code, but now I just want to figure out, what is possible, and what is not in virtual layer But I guess creating VL is quite the same as regular layers, eg. link
    – DIV
    Commented Sep 24, 2019 at 10:31
  • What happens when you duplicate the layer with used filter and apply a VL over it?
    – Taras
    Commented Sep 24, 2019 at 10:42

0

Browse other questions tagged or ask your own question.