Re: [Qgis-user] automatically reload (csv) file

2015-09-18 Thread Nicola Poles
It reads the datasource and updates the layer accordingly, including the coordinates and all the attributes. On Fri, Sep 18, 2015 at 10:15 AM, Dr. Marco Lechner wrote: > Hi Nicola, > > I guess this will only redraw the features in the mapcanvas, but not > necessarily read the

Re: [Qgis-user] automatically reload (csv) file

2015-09-18 Thread Andreas Neumann
Hi Delazj, Yes - I was assuming that people would use the "Add delimited text layer tool". Sorry - I forgot to mention that. It is more flexible and easier to use than the "Add vector layer" dialogue. About CSV, joins and updates: have you checked the cache vs. uncached option for your

[Qgis-user] automatically reload (csv) file

2015-09-18 Thread Dr. Marco Lechner
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

Re: [Qgis-user] automatically reload (csv) file

2015-09-18 Thread Dr. Marco Lechner
Hi Nicola, I guess this will only redraw the features in the mapcanvas, but not necessarily read the datasource file, but I'm not sure about this. Marco Am 18.09.2015 um 10:02 schrieb Nicola Poles: > To reload a CSV file you can press the Refresh button on the toolbar or > press the "F5" key >

Re: [Qgis-user] automatically reload (csv) file

2015-09-18 Thread Andreas Neumann
Hi Marco, If you have the "watch file" option of your CSV file active it will reread data when file content changes and when your redraw your map (either through navigation or redraw button). I guess you could also write a small Python script if you want to automatically trigger an update

Re: [Qgis-user] automatically reload (csv) file

2015-09-18 Thread Dr. Marco Lechner
Hi, just for my better understanding: is the "Add delimited text layer" at its end using libogr anyway? We use the Option - I just did not know about the "watch file" Option. Does QgsMapLayerRegistry.instance().mapLayer(u'mylayer201509181234').triggerRepaint() reread the features of any

Re: [Qgis-user] automatically reload (csv) file

2015-09-18 Thread Nicola Poles
To reload a CSV file you can press the Refresh button on the toolbar or press the "F5" key Nicola On Fri, Sep 18, 2015 at 9:16 AM, Dr. Marco Lechner wrote: > Hi, > > how (often) does QGIS read features from a file (like csv or shape - > differences?)? I realize I do not really

Re: [Qgis-user] automatically reload (csv) file

2015-09-18 Thread DelazJ
Hi, Andreas, unless you add the csv file with "Add delimited text layer" tool, I'm afraid there's not a "watch file" option available. I just add a csv file to a qgis project with "add a vector layer" tool. I open the same csv in a text editor and change some values. While reopening the csv file