[GRASS5] [bug #2786] (grass) d.zoomed in and out too much, now can't get back exactly

Hamish hamish_nospam at yahoo.com
Tue Dec 7 17:35:30 EST 2004


> As I understand the wish, it is for a more or less automatic way of
> doing the following (from your post below):
> 
> g.region save=home
> d.zoom
> g.region home
> d.redraw
> 
> This only works if you remember to save the region to "home" before
> zooming. ArcView and MapInfo both have a 'return to previous zoom'
> command. I also would find it handy--though because of the ability of
> GRASS to save a named region this function wouldn't be at the top of
> my wish list.
> 
> In GRASS, this would require d.zoom to execute a g.region
> save=temp_region each time it resets the region. Then a 'zoom to
> previous' could call up the saved temporary region and reset the
> region accordingly.

to refine:

d.zoom would start out with
cp $MAPSET/WIND $MAPSET/OLD_WIND

and then do its thing & exit.

then we would need 'd.zoom -r' or 'g.region -r' to restore.

(job for someone else)


Hamish




More information about the grass-dev mailing list