[GRASS-user] "Automatic" redraw of map display in 6.4 when underlying raster changes?

Glynn Clements glynn at gclements.plus.com
Wed Oct 5 17:31:07 EDT 2011


Rainer M Krug wrote:

> I am looking for a way to automatically redraw a map if the underlying
> raster map is changing.
> 
> Background: I am running a spatial simulation, and would like to see open a
> few graphics monitors (or similar)to follow how certain maps are changing
> over time. Is there a way of doing this?
> 
> At the moment I am using d.mon and d.rast but these are static and not
> refresh when the underlying raster is changing. TO make it even more
> interesting: I am doing some steps of the simulation in R and only write the
> results back to the GRASS database.
> 
> If it is not possible in 6.x, will it be possible in 7?

GRASS doesn't have any mechanism to obtain notifications when maps
change. You will need to have your code provide such notifications.

Monitoring the filesystem is likely to be unreliable, as there's no
straightforward way to determine when files are in a consistent state.

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-user mailing list