[GRASSLIST:9576] Re: script for creating map

Michael Barton michael.barton at asu.edu
Mon Dec 19 11:41:04 EST 2005


Try running d.mon stop=x0 to clear it out. Then see if d.mon start=x0 works.
This can happen if you've had some kind of an improper stopping of GRASS or
monitors.

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 at maitro.net>
> Date: Mon, 19 Dec 2005 10:00:29 +0100
> To: Michael Barton <michael.barton at asu.edu>
> Subject: Re: [GRASSLIST:9552] 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 at maitro.net>
>>> Date: Thu, 15 Dec 2005 11:28:48 +0100
>>> To: GRASSLIST <GRASSLIST at 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
>>>    
>>> 
>> 
>> 
>>  
>> 
> 




More information about the grass-user mailing list