Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#1174 closed defect (invalid)

Set zoom to/from computational region in display map does not work

Reported by: frankie Owned by: grass-dev@…
Priority: major Milestone: 6.4.1
Component: Tcl/Tk Version: 6.4.0
Keywords: Cc:
CPU: All Platform: Linux

Description

It is quite easy to check. Simply change resolution and try to zoom at the new level. It is ignored.

Attachments (2)

vegcover_res30.png (248.2 KB ) - added by mlennert 14 years ago.
view at original resolution
vegcover_res500.png (234.3 KB ) - added by mlennert 14 years ago.
view at res=500

Download all attachments as: .zip

Change History (6)

in reply to:  description comment:1 by mlennert, 14 years ago

Replying to 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 ?).

Moritz

comment:2 by frankie, 14 years ago

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.

comment:3 by marisn, 14 years ago

Resolution: invalid
Status: newclosed

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.

See gis.m help for more: http://grass.osgeo.org/grass64/manuals/html64_user/gis.m.html

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.

in reply to:  2 comment:4 by mlennert, 14 years ago

Replying to 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.

Moritz

by mlennert, 14 years ago

Attachment: vegcover_res30.png added

view at original resolution

by mlennert, 14 years ago

Attachment: vegcover_res500.png added

view at res=500

Note: See TracTickets for help on using tickets.