[GRASSLIST:2229] Re: further problems with grasslinks

Glynn Clements glynn.clements at virgin.net
Tue Jul 31 19:16:58 EDT 2001

jun liu wrote:

> Thank you very much for the help.but there are still
> some questions I want to ask.
> Before I copy the ppm from driver.uninst to driver.sh,
> I can not select ppm from grass terminal,as I said
> before. but ppm can be selected from Grass GUI menu,

Are you referring to the list which is displayed if you choose the
menu option:

	  Paint driver
	    Printer select

then press the "paint" button? If so, that appears to be a bug in
tcltkgrass; it constructs the list based upon the contents of the
directory $GISBASE/etc/paint/driver, even though not all of these
drivers are available.

> and then p.map.new can be run successfully to create a
> map  from some scripts in the monitor. Here I can not
> see any difference between selecting ppm and selecting
> preview.  Could you tell me what  the reason is?

Did you actually press the "Run" button at the bottom of the
"p.select" window? If not, then you didn't actually change the
selected driver.

If you select the "ppm" driver when it's not actually available (no
script in driver.sh), then press the "Run" button, you will get an
error message.

> and then I copy the ppm to driver.sh, this time ppm
> can be selected  from both terminal and GUI, but
> running p.map.new will give errors like "ERROR: ppm
> driver:HRES not set.  ERROR: can't read from ppm
> driver". what needs to do with that?

You file which you need to copy is the shell script in the directory
$GISBASE/etc/paint/driver.uninst, not the binary in

> The last question is about $ENV{MAPLP}, I try to use
> "p.map.new scripts > $ENV{MAPLP} 2>/dev/null" to
> define it, will this work? if not could you give me
> some  suggestions?

If your shell is a C-shell, use

	setenv MAPLP $HOME/paint.ppm

If your shell is a Bourne shell, use

	export MAPLP

Glynn Clements <glynn.clements at virgin.net>

More information about the grass-user mailing list