[Qgis-user] automatically reload (csv) file

Dr. Marco Lechner mlechner at bfs.de
Fri Sep 18 00:16:20 PDT 2015


Hi,

how (often) does QGIS read features from a file (like csv or shape -
differences?)? I realize I do not really know how the datasource - qgis-
communication goes.

Imaine you have a csv or shape file that is loaded into QGIS but is
automatically replaced from time to time (or lets say externally
edited). Using a database- instead of file-based approach is better for
sure, but still it is not clear when / how often (on which events) QGIS
requests features from the datasources.

As an idea in mind I see, the nice Sync-Plugin
(https://plugins.qgis.org/plugins/SyncQGISWithDir/) can monitor folders
and notify the user if a new layer is available in a folder (well it
does not take care of a changed layer (new timestamp of file, but adding
this functionality should not be such a big thing). The user could also
be notified when a layers file changed.

But I'm not sure what was the best way to implement the (re)loading of
an already loaded layer. Do I have to drop the layer and reload it
(including keeping the style) or is there a more efficient way?

Marco

-- 
Dr. Marco Lechner
Bundesamt fuer Strahlenschutz / Federal Office for Radiation Protection
SW2.1 Koordination Notfallschutzsysteme / Coordination Emergency Systems
Rosastrasse 9 | D-79098 Freiburg | Germany
mlechner at bfs.de | +49 (0)3018 333 6724 | www.bfs.de

-- 
Hinweis zu Anhängen die auf .p7m/.p7c/.p7s oder .asc/.asc.sig enden:
Die .p7?- und .asc-Dateien sind ungefährliche Signaturdateien (digitale
Unterschriften).
In E-Mail-Clients mit S/MIME Konfiguration (.p7?) oder PGP-Erweiterung
(.asc) dienen sie zur:
- - Überprüfung des Absenders
- - Überprüfung einer evtl. Veränderung des Inhalts während der
Übermittlung über das Internet
Die Signaturdateien können ebenso dazu verwendet werden dem Absender
dieser Signatur eine E-Mail mit verschlüsseltem Inhalt zu senden.

In E-Mail-Clients ohne S/MIME Konfiguration oder PGP-Erweiterung
erscheinen die Dateien als Anhang und können ignoriert werden.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0xD733400E.asc
Type: application/pgp-keys
Size: 3108 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20150918/2212a0cc/attachment.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5079 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20150918/2212a0cc/attachment.bin>


More information about the Qgis-user mailing list