>I don't see anything immediately wrong. Maybe it is a specific MS
>Windows issue I cannot reproduce here in GNU/Linux.
>
>@Helmut any ideas ?

tested here in the following way in OSGeo4W-winGRASS 7.8.5

(1) changing the working directory via GUI > change working directory
 
 cd "D:\temp\testgrassrender"                                                   
 
Working directory changed to:                                                   
"D:\temp\testgrassrender"

(2) in OSgeo4W-winGRASS-windows console (no msys needed!), also change here to 
the new wd:

C:\>cd D:\temp\testgrassrender
C:\>d:

(3) put the variables and d.-commands into a bat-file into the working 
directory (D:\temp\testgrassrender\mytest.bat):

REM start of the batch file

set GRASS_RENDER_IMMEDIATE=png
set GRASS_RENDER_WIDTH=640
set GRASS_RENDER_HEIGHT=480
set GRASS_RENDER_TRANSPARENT=true
set GRASS_RENDER_TRUECOLOR=true
set GRASS_RENDER_FILE_COMPRESSION=0
set GRASS_MESSAGE_FORMAT=plain
set GRASS_RENDER_FILE_READ=TRUE

g.region vect=census_wake2000
d.vect map=census_wake2000 fill_color=none
d.vect map=roadsmajor color=255:0:0:255
d.vect map=schools_wake fill_color=0:128:0:255 icon=basic/circle size=10

REM end of the batch file

=> see here: in order to set a variable in the windows world, use e.g. set 
GRASS_RENDER_IMMEDIATE=png instead if export GRASS_RENDER_IMMEDIATE=png in the 
*nix world

(4) start your batch file in the windows command line:

D:\temp\testgrassrender>mytest.bat

D:\temp\testgrassrender>set GRASS_RENDER_IMMEDIATE=png
D:\temp\testgrassrender>set GRASS_RENDER_WIDTH=640
D:\temp\testgrassrender>set GRASS_RENDER_HEIGHT=480
D:\temp\testgrassrender>set GRASS_RENDER_TRANSPARENT=true
D:\temp\testgrassrender>set GRASS_RENDER_TRUECOLOR=true
D:\temp\testgrassrender>set GRASS_RENDER_FILE_COMPRESSION=0
D:\temp\testgrassrender>set GRASS_MESSAGE_FORMAT=plain
D:\temp\testgrassrender>set GRASS_RENDER_FILE_READ=TRUE
D:\temp\testgrassrender>g.region vect=census_wake2000
D:\temp\testgrassrender>d.vect map=census_wake2000 fill_color=none
d.vect komplett.

D:\temp\testgrassrender>d.vect map=roadsmajor color=255:0:0:255
d.vect komplett.

D:\temp\testgrassrender>d.vect map=schools_wake fill_color=0:128:0:255 
icon=basic/circle size=10
d.vect komplett.

(5) see attached the result png - it looks like the same as Moritz's example

kind regards
Helmut
_______________________________________________
grass-user mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to