<div dir="ltr">Hello dear list,<div><br></div><div>in  the process of developing a plugin (python 2.7, QGIS 2.6),</div><div><br></div><div>from pyqgis ,</div><div>we would like to refresh a Postgis layer.<br>When using the vectorLayer.refresh(), it does nothing.</div><div><br></div><div>We used a trick that works but seems like a bad idea :</div><div>(we slightly change the zoom to force rendering)</div><div>DEFAULT_SEGMENT_EPSILON = 1E-8<br></div><div>mapCanvas().zoomByFactor(1.0 + DEFAULT_SEGMENT_EPSILON, mapRect.center())<br></div><div><br></div><div>Somebody knows how to do it properly?</div><div>Thanks,</div><div>Rémi-C</div></div>