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

Hamish hamish_nospam at yahoo.com
Mon Aug 20 01:12:37 EDT 2007


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




More information about the grass-dev mailing list