Ah yes, thanks! F5 reloads the data for all layers.

But the initial question was why the 'Refresh Layer at Interval' does not work. I think the re-render works but it does not reload the data. Can anyone confirm?

Raymond
On 14-04-2020 21:03, Richard Duivenvoorde wrote:
I've created a minimal script which generates a random point, more or
less in The Netherlands..:

https://duif.net/cgi-bin/gj.py

If you load that script as a vector layer /Protocol/GeoJSON you will see
one point in The Netherlands.
Upon hitting F5 (menu: View/Refresh), you will see the dot moving as it
is requesting the data everytime..

For what I know this worked for all datasources?

Not sure if this is what you try to achieve, but that is also possible
with python (though I do not have it with me here...)

Regards,

Richard Duivenvoorde

On 4/14/20 12:40 PM, Raymond Nijssen wrote:
Hi Ayyala,

Since the option is in the tab called "Render" I think it will only
re-render the layer and not reload the data.

I tried this:
- create 3 points in a geojson layer
- set a 2 sec refresh interval on it
- open the geojson file in a text editor and add an extra point
- save geojson
The extra point should show up within 2 seconds in qgis but it does not.

Even after panning or zooming it does not show up. I think it would if I
used a postgis layer or a shp-file? Could this be dependent on the data
format?


If you need an example of a refreshed layer, you can type "hackfests" in
the Coordinate input at the bottom. It will show you the hackfest
locations with "moving" markers.


@other users: Does QGIS have an option to reload data for a layer? In
the GUI, similar to the "Update Extents" button?

Kind regards,
Raymond



On 14-04-2020 05:04, krishna Ayyala wrote:
Hello,

I have a shape file as below. I have checked the box "Refresh Layer at
Interval" for 1 second. The layer isĀ  not refreshing.

Regards.

image.png



image.png

_______________________________________________
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

_______________________________________________
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

_______________________________________________
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to