I have been working on a QGIS plugin. I have run into some problems and to solve it, one of the solutions would be to add a column to the WFS layer. However most of the times, I have not the permission to edit the WFS layer. I was wondering whether it would be possible to create a kind of temp attribute to each feature. It does not have to be persistent, so I only needed at runtime. Would something like this be possible?

1 Answer 1


Sounds like you want a virtual field.

enter image description here

  • Is there API functionality exposed that can add a virtual field?
    – til_b
    Commented Aug 23, 2016 at 10:12
  • That I do not know. Commented Aug 23, 2016 at 10:51
  • 1
    Thanks, exactly what I need. Yes it is possible to do it from Python. See this post: gis.stackexchange.com/questions/144241/…
    – Nicky508
    Commented Aug 23, 2016 at 11:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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