[GRASS-dev] Re: gis.m zooming: 2 new bugs

Michael Barton michael.barton at asu.edu
Mon Sep 18 16:53:19 EDT 2006


On to better bugs...

Maciek. See below. I'll need some additional info. Thanks

Michael
__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics and Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton


> From: Maciej Sieczka <tutey at o2.pl>
> Date: Mon, 18 Sep 2006 22:40:27 +0200
> To: Michael Barton <michael.barton at asu.edu>
> Cc: grass-dev <grass-dev at grass.itc.it>
> Subject: gis.m zooming: 2 new bugs
> 
> Micheal,
> 
> With your today commited fixes for gis.m the single-click zoom-OUT bug
> seems gone, which is cooler than ice-cold.
> 
> But, a new beast cropped out in regard to single-click zoom-IN for a
> change.
> 
> Based on spearfish60.
> 
> 1
> add "slope" raster, 'Zoom to selected map'
> 
> 2
> zoom-in by selecting a region with mouse - make the region higher than
> wider
> 
> 3
> zoom-in by single-clicking - whole canvas is filled - the aspect ratio
> is not preserved when zooming! single-click zoom-OUT *does* preserve
> aspect ratio...

Zooming in simply zooms in from the current display geometry by a set
amount. It essentially creates an invisible zoom box. So it won't preserve a
specific aspect ratio. If you want to also affect the aspect ratio, you need
to either draw a zoom box or use g.region. This could be changed, but from
your description, it seems to be behaving as it is supposed to. Or did I
misunderstand your description?

> 
> 
> 
> Another bug is that zoom-out by selecting a region with mouse leads to
> unexpected results, like if only the Y coord was handled correctly.
> Reminds of the now-fixed single-click zoom-out bug. Proceed the same
> way I described that, to spot this one too.

This is bizarre. I specifically tested that in detail last night. Try the
test I used and see if it behaves incorrectly or not and let me know.

I opened the Spearfish elevation map and zoom to match the map in the
display. I draw a zoom-out box in the upper left corner of the display. The
map shrinks so that all of it fits inside this box. This puts the map at the
upper left of the display. Do the same thing with the other corners or in
the middle of the map, and the map should shrink to fit within the box
drawn.

Michael

> 
> 
> 
> Good luck in fixing these.
> 
> Best,
> Maciek
> 




More information about the grass-dev mailing list