[GRASS5] saving stats in NVIZ does not work

Glynn Clements glynn at gclements.plus.com
Mon Nov 29 18:06:37 EST 2004


Stephan Holl wrote:

> while making first experiences with 3d-data in NVIZ I was not able to
> save any states from within NVIZ. 
> It says:
> Error: Cannot read "env(GISDBASE)": no such variable.
> Perhaps someone can confirm this behavoiur?
> 
> As I am not familiar with tcltk I cannot debug this :-(
> Does someone has a solution?

This is related to the removal of the startup script.

NVIZ probably requires a patch similar to the one which is attached
(untested).

-- 
Glynn Clements <glynn at gclements.plus.com>

-------------- next part --------------
Index: visualization/nviz/scripts/fileBrowser.tcl
===================================================================
RCS file: /grassrepository/grass51/visualization/nviz/scripts/fileBrowser.tcl,v
retrieving revision 2.0
diff -u -r2.0 fileBrowser.tcl
--- visualization/nviz/scripts/fileBrowser.tcl	9 Nov 2004 14:18:13 -0000	2.0
+++ visualization/nviz/scripts/fileBrowser.tcl	29 Nov 2004 23:05:13 -0000
@@ -4,7 +4,8 @@
 
 global file_browser
 global last_dir
-set last_dir $env(GISDBASE)/$env(LOCATION_NAME)/$env(MAPSET)/images
+global src_boot
+set last_dir [exec $src_boot/bin/g.gisenv GISDBASE]/[exec $src_boot/bin/g.gisenv LOCATION_NAME]/[exec $src_boot/bin/g.gisenv MAPSET]/images
 
 if {![file isdirectory $last_dir]} {
     set last_dir [pwd]


More information about the grass-dev mailing list