[GRASS-dev] starting NVIZ from tcl map display toolbar

Hi,

with the latest 6.3cvs, the nviz button flashes up the wish x-window
then pops away.

adding a debug {puts "$cmd"} into group.tcl proc GmGroup::nvdisplay{}
then running the output at the GRASS> command prompt shows the error:

Error: Raster <mapname> is outside of current region
Load Failed

I -assume- NVIZ from the Map Display window is starting with the
computational region, not the display region, but haven't added
'g.region -p's into the tcl nvdisplay {} to check. Of course starting
the command from the terminal prompt will use the gis region, not the
active display region so my above test is a bit flawed.
Perhaps the caught error could be sent to an error popup window?

If the NVIZ button was on the GIS Manager window, it's plausable to use
the computational region; if the button is on the Map Display toolbar,
it should really use the Display region.

path:
set the region somewhere outside a raster map
start gis.m from the command line
add raster map layer using a raster map
hit redraw button
  (you get a white rectangle on the canvas)
Use the "zoom to selected map" button
redraw button
"Start NVIZ using active layers in current region" button
a wish x-window flashes then goes away.

thanks,
Hamish

On 8/19/07 10:12 PM, "Hamish" <hamish_nospam@yahoo.com> wrote:

If the NVIZ button was on the GIS Manager window, it's plausable to use
the computational region; if the button is on the Map Display toolbar,
it should really use the Display region.

path:
set the region somewhere outside a raster map
start gis.m from the command line
add raster map layer using a raster map
hit redraw button
  (you get a white rectangle on the canvas)
Use the "zoom to selected map" button
redraw button
"Start NVIZ using active layers in current region" button
a wish x-window flashes then goes away.

Hamish,

This is a very good point. As well as annoying, it is counter-intuitive that
nviz opened on a display does not not show what is in the display. I'll see
if there is anything that can be done about it.

Michael

__________________________________________
Michael Barton, Professor of Anthropology
Director of Graduate Studies
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