[GRASSLIST:1974] Re: raster display problem in 5.7

Christopher Fonnesbeck chris at fonnesbeck.org
Sun Dec 7 18:04:12 EST 2003


On Dec 7, 2003, at 5:20 PM, Hamish wrote:

>>>> I've been running into a problem displaying raster maps in my 5.7
>>>> CVS build. When I start a monitor, and attempt to display a raster
>>>> map, the monitor remains white.
> ...
>> It gives me the following error:
>>
>> can't read "opttype(1)": no such variable
>> can't read "opttype(1)": no such variable
>>      while executing
>> "if { $opttype($i) == "multi" } {
>>              set domulti 0
>>              for {set j 1} {$j <= $nmulti($i) } {incr j} {
>>                  if { $optval($i,$..."
>>      (procedure "mkcmd" line 5)
>>      invoked from within
>> "mkcmd "
>>      invoked from within
>> ".run invoke"
>>      ("uplevel" body line 1)
>>      invoked from within
>> "uplevel #0 [list $w invoke]"
>>      (procedure "tk::ButtonUp" line 23)
>>      invoked from within
>> "tk::ButtonUp .run"
>>      (command bound to event)
>
>
> Ok, that'll probably be the Tcl/Tk problem Glynn was speaking of then.
> There is a Mac version and a UNIX/X11 version, GRASS needs to be built
> and used with the UNIX/X11 version (usually from FINK). If you are 
> using
> Markus' binaries you can be pretty confident that it was built with the
> X11 version, but you still need it installed on your system to use at
> run time. The Tcl/Tk driver program is called 'wish' and as Glynn noted
> you can force GRASS to use a non-default version by installing to
> somewhere and then setting the enviromental variable GRASS_WISH in your
> terminal before starting GRASS.

But, it *was* working for awhile, then stopped working. I am using my 
own build from CVS, with the OSX Tcl/Tk framework, which is used by the 
OpenOSX GRASS (which works fine on my system).

>
>
> Is this breaking from the command line or from d.m? Does:
> d.rast raster_name
> by itself on the command line work?
>
>

This breaks from both the d.m and the command line.

>
> hope it helps, sounds like you are 99% of the way there..
> Hamish
>
>

Thanks!

>
--
Christopher J. Fonnesbeck ( c h r i s @ f o n n e s b e c k . o r g )
Georgia Cooperative Fish & Wildlife Research Unit, University of Georgia




More information about the grass-user mailing list