[GRASS5] gis.m limitation

Glynn Clements glynn at gclements.plus.com
Wed May 3 17:06:52 EDT 2006


Cedric Shock wrote:

> > On of the short comings with gis.m that I now find is that it is
> > impossible to zoom to a file with the new interface since shell
> > commands no longer affect the current window.
> 
> Shell commands do affect the region, which affects the window if it is 
> redrawn. Currently there are two redraw buttons. The one on the left draws 
> changes in layers. The one on the redraws everything and will draw correctly 
> if the region has been changed.
> 
> I imagine that if I change the region and change a layer and use the left 
> redraw button I'll get two layers rendered at different regions which is a 
> bug. I just tried this and indeed it is so.
> 
> The correct thing for us to do is have one redraw button and a belief state 
> about the region. If the region is not in our belief state we should assert 
> that the layers are dirty and must be redrawn.

For redrawing using the region from the WIND file, that should
probably be replaced by an option to update gis.m's current region
from the WIND file. That would automatically invalidate all rendered
layers, so the next time the display is updated, everything would be
re-rendered.

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




More information about the grass-dev mailing list