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.rouz...@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 >
_______________________________________________ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer