[GRASSLIST:9570] Re: script for creating map

I tried it out. The problem is, that its not possible to start a display.
When I run "d.mon start=x0" I get an error:

ERROR: Graph_Set: can't open Display
No socket to connect to for monitor <x0>.
Problem selecting x0. Will try once more
No socket to connect to for monitor <x0>.

Any idea what the problem could be?

Maik

Michael Barton wrote:

Check out the d.out.file script (or it's predecessor, d.out.png) that I
wrote and is included with GRASS. This will export whatever is on the
current monitor to a png (or other formats if you have gdal). Add d.mon and
d.rast and/or d.vect and you can script the creation of a map and its export
to png.

Michael
______________________________
Michael Barton, Professor of Anthropology
School of Human Evolution and Social Change
Arizona State University
Tempe, AZ 85287-2402
USA

voice: 480-965-6262; fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

From: Maik Trömel <maik.troemel@maitro.net>
Date: Thu, 15 Dec 2005 11:28:48 +0100
To: GRASSLIST <GRASSLIST@baylor.edu>
Subject: [GRASSLIST:9498] script for creating map

Hello Grass-Users,

I want to write a script that creates a map as a png-file. I know how to
make it by hand. But when I try to script it, it doesn't work because I
can't open a monitor. Is there a possibility to create a map with a script.
If "yes". How can I do this.

Thanks for you help.

Greetings
Maik