[QGIS-Developer] WFS cache invalidation / trigger repaint
Denis Rouzaud
denis.rouzaud at gmail.com
Fri Jun 5 12:44:22 PDT 2020
Hi all,
After digging a bit more, it seems that the cache invalidation is not
working on the WFS layer.
If I call emitDataChanged on any of its layers dependencies, or call
emitDataChanged on this layer or even call triggerRepaint, the layer stays
the same.
Only, re-opening the project refreshes the layer.
I am not very familiar with WFS layers, anyone has an idea about this?
Cheers,
Denis
Le mer. 3 juin 2020 à 15:19, Denis Rouzaud <denis.rouzaud at gmail.com> a
écrit :
> Hi all,
>
> I have a small question regarding how layer dependencies work.
>
> I have 2 WFS layers, one being edited, the other one read-only but is
> actually a view based on the first layer.
>
> How can we do that the second layer is refreshed when the first one is
> edited?
>
> I gave a shot at layer dependencies by making the view dependent of the
> first layer, but when I add a feature, nothing changes on the view (I have
> to re-open the project to see the changes).
>
> Are the layer dependencies supposed to handle this kind of issue?
> Am I missing something?
>
> Note: the changes is actually happening in related layer (1:n relation),
> but the related layer is also checked in the dependencies.
>
> Cheers,
> Denis
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20200605/3564dc67/attachment.html>
More information about the QGIS-Developer
mailing list