2

When I try to use virtual layers in QGIS, I'm unable to use relative paths.

I've already set in the "Project Properties", in the tab "General", the "Save paths" as relative.

You can see a screenshot to illustrate the issue.

Virtual layer absolute path only

Removing the absolute path "breaks" the virtual layer. For this reason, my *.qgs project is not portable...

How do you manage this use case? It's due to my way of doing, is it a feature, a missing feature or a bug?

Any advice to bypass this issue is welcome

  • Maybe instead of using shapefiles use SpatiaLite and use a view instead of a virtual layer...? – DPSSpatial Jun 30 '16 at 21:55
  • 2
    The author's github ( he answers quickly) github.com/mhugo – lejedi76 Jul 1 '16 at 6:24
1

author here. That has not been tested. You should file a bug report.

We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.