<div dir="ltr">It reads the datasource and updates the layer accordingly, including the coordinates and all the attributes.<div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 18, 2015 at 10:15 AM, Dr. Marco Lechner <span dir="ltr"><<a href="mailto:mlechner@bfs.de" target="_blank">mlechner@bfs.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Nicola,<br>
<br>
I guess this will only redraw the features in the mapcanvas, but not<br>
necessarily read the datasource file, but I'm not sure about this.<br>
<br>
Marco<br>
<span class=""><br>
Am 18.09.2015 um 10:02 schrieb Nicola Poles:<br>
> To reload a CSV file you can press the Refresh button on the toolbar or<br>
> press the "F5" key<br>
><br>
> Nicola<br>
><br>
> On Fri, Sep 18, 2015 at 9:16 AM, Dr. Marco Lechner <<a href="mailto:mlechner@bfs.de">mlechner@bfs.de</a><br>
</span><div><div class="h5">> <mailto:<a href="mailto:mlechner@bfs.de">mlechner@bfs.de</a>>> wrote:<br>
><br>
>     Hi,<br>
><br>
>     how (often) does QGIS read features from a file (like csv or shape -<br>
>     differences?)? I realize I do not really know how the datasource - qgis-<br>
>     communication goes.<br>
><br>
>     Imaine you have a csv or shape file that is loaded into QGIS but is<br>
>     automatically replaced from time to time (or lets say externally<br>
>     edited). Using a database- instead of file-based approach is better for<br>
>     sure, but still it is not clear when / how often (on which events) QGIS<br>
>     requests features from the datasources.<br>
><br>
>     As an idea in mind I see, the nice Sync-Plugin<br>
>     (<a href="https://plugins.qgis.org/plugins/SyncQGISWithDir/" rel="noreferrer" target="_blank">https://plugins.qgis.org/plugins/SyncQGISWithDir/</a>) can monitor folders<br>
>     and notify the user if a new layer is available in a folder (well it<br>
>     does not take care of a changed layer (new timestamp of file, but adding<br>
>     this functionality should not be such a big thing). The user could also<br>
>     be notified when a layers file changed.<br>
><br>
>     But I'm not sure what was the best way to implement the (re)loading of<br>
>     an already loaded layer. Do I have to drop the layer and reload it<br>
>     (including keeping the style) or is there a more efficient way?<br>
><br>
>     Marco<br>
><br>
>     --<br>
>     Dr. Marco Lechner<br>
>     Bundesamt fuer Strahlenschutz / Federal Office for Radiation Protection<br>
>     SW2.1 Koordination Notfallschutzsysteme / Coordination Emergency Systems<br>
>     Rosastrasse 9 | D-79098 Freiburg | Germany<br>
</div></div>>     <a href="mailto:mlechner@bfs.de">mlechner@bfs.de</a> <mailto:<a href="mailto:mlechner@bfs.de">mlechner@bfs.de</a>> | <a href="tel:%2B49%20%280%293018%20333%206724" value="+4930183336724">+49 (0)3018 333 6724</a><br>
>     <tel:%2B49%20%280%293018%20333%206724> | <a href="http://www.bfs.de" rel="noreferrer" target="_blank">www.bfs.de</a> <<a href="http://www.bfs.de" rel="noreferrer" target="_blank">http://www.bfs.de</a>><br>
<span class="">><br>
>     --<br>
>     Hinweis zu Anhängen die auf .p7m/.p7c/.p7s oder .asc/.asc.sig enden:<br>
>     Die .p7?- und .asc-Dateien sind ungefährliche Signaturdateien (digitale<br>
>     Unterschriften).<br>
>     In E-Mail-Clients mit S/MIME Konfiguration (.p7?) oder PGP-Erweiterung<br>
>     (.asc) dienen sie zur:<br>
>     - - Überprüfung des Absenders<br>
>     - - Überprüfung einer evtl. Veränderung des Inhalts während der<br>
>     Übermittlung über das Internet<br>
>     Die Signaturdateien können ebenso dazu verwendet werden dem Absender<br>
>     dieser Signatur eine E-Mail mit verschlüsseltem Inhalt zu senden.<br>
><br>
>     In E-Mail-Clients ohne S/MIME Konfiguration oder PGP-Erweiterung<br>
>     erscheinen die Dateien als Anhang und können ignoriert werden.<br>
><br>
>     _______________________________________________<br>
>     Qgis-user mailing list<br>
</span>>     <a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a> <mailto:<a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a>><br>
>     <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
><br>
><br>
<br>_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br></blockquote></div><br></div>