[GRASS-dev] Re: [GRASS-windows] Problems with Mapcanvas
Glynn Clements
glynn at gclements.plus.com
Mon Nov 19 10:34:16 EST 2007
Doug_Newcomb at fws.gov wrote:
>
> I'm having trouble viewing any datasets on the map canvas. When I "Enter
> GRASS" I get the following message popping up :
>
> can't read "end": no such variable
> can't read "end": no such variable
> while executing
> "string trim $parts(projection) $end"
> (procedure "MapCanvas::runprograms" line 47)
The code (mapcanvas.tcl:593) is:
# Finally put this into wind file format to use with GRASS_REGION
regexp -nocase {^.* (\(.*\))} $parts(projection) trash end
set parts(projection) [string trim $parts(projection) $end]
It should be checking the return value from regexp before trying to
use the match variables.
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-dev
mailing list