#1174: Set zoom to/from computational region in display map does not work
---------------------+------------------------------------------------------
Reporter: frankie | Owner: grass-dev@…
Type: defect | Status: new
Priority: major | Milestone: 6.4.1
Component: Tcl/Tk | Version: 6.4.0
Keywords: | Platform: Linux
Cpu: All |
---------------------+------------------------------------------------------
It is quite easy to check. Simply change resolution and try to zoom at the
new level. It is ignored.
#1174: Set zoom to/from computational region in display map does not work
---------------------+------------------------------------------------------
Reporter: frankie | Owner: grass-dev@…
Type: defect | Status: new
Priority: major | Milestone: 6.4.1
Component: Tcl/Tk | Version: 6.4.0
Keywords: | Platform: Linux
Cpu: All |
---------------------+------------------------------------------------------
Comment(by mlennert):
Replying to [ticket:1174 frankie]:
> It is quite easy to check. Simply change resolution and try to zoom at
the new level. It is ignored.
Doing
- set computational region extents to match display
- g.region -a res=500
- zoom to computational display
- g.region -a res=10000
- zoom to computational display
works for me. Are you sure you are using the constrained display mode ?
(Just to confirm: This is in the old tcltk GUI, or ?).
#1174: Set zoom to/from computational region in display map does not work
---------------------+------------------------------------------------------
Reporter: frankie | Owner: grass-dev@…
Type: defect | Status: new
Priority: major | Milestone: 6.4.1
Component: Tcl/Tk | Version: 6.4.0
Keywords: | Platform: Linux
Cpu: All |
---------------------+------------------------------------------------------
Comment(by frankie):
It is an error in gis.m. Let do what follows in spearfish:
* Load vegcover in layer tree.
* View it in display map at default res (30m)
* Change resolution to 500m by g.region (menu or command line)
* Then -> Zoom display to computational region. It does not change
resolution in the display map. Up to 6.2 that was working.
I do not see any reason because one has to set computational region to
match display, as you suggest, before that. Also note I'm using Tcl/Tk 8.4
which is the default in Debian sid/squeeze and 6.4.0 final.
#1174: Set zoom to/from computational region in display map does not work
----------------------+-----------------------------------------------------
Reporter: frankie | Owner: grass-dev@…
Type: defect | Status: closed
Priority: major | Milestone: 6.4.1
Component: Tcl/Tk | Version: 6.4.0
Resolution: invalid | Keywords:
Platform: Linux | Cpu: All
----------------------+-----------------------------------------------------
Changes (by marisn):
* status: new => closed
* resolution: => invalid
Comment:
By default gis.m is not affected by raster resolution in "explore" mode.
Switdh gis.m to "strict" (Constrain map to region geometry) and it will
use current computational resolution also for displaying data.
'''In explore mode the region from the last zoom is expanded to fill the
entire screen. The resolution is adjusted to match the screen resolution.
Explore mode shows as much as possible.'''
#1174: Set zoom to/from computational region in display map does not work
----------------------+-----------------------------------------------------
Reporter: frankie | Owner: grass-dev@…
Type: defect | Status: closed
Priority: major | Milestone: 6.4.1
Component: Tcl/Tk | Version: 6.4.0
Resolution: invalid | Keywords:
Platform: Linux | Cpu: All
----------------------+-----------------------------------------------------
Comment(by mlennert):
Replying to [comment:2 frankie]:
> It is an error in gis.m. Let do what follows in spearfish:
> * Load vegcover in layer tree.
> * View it in display map at default res (30m)
> * Change resolution to 500m by g.region (menu or command line)
> * Then -> Zoom display to computational region. It does not change
resolution in the display map. Up to 6.2 that was working.
>
> I do not see any reason because one has to set computational region to
match display, as you suggest, before that.
That was just for convenience to better see the difference... (having
zoomed into the map).
> Also note I'm using Tcl/Tk 8.4 which is the default in Debian
sid/squeeze and 6.4.0 final.
Just to reinforce Maris' message: it works perfectly here (Debian lenny
+lenny-backports, with tcl 8.4) when using the "Strict draw mode".
Screenshots attached to show it works. IMHO, this report can be closed,
but I'll let Frankie do it if he agrees.