Helmut ... thank you for your example however I think there is a
misunderstanding of what I am trying to do. I am using GRASS on Linux (on a
cluster) and the issue I am experiencing is overlaying two polygon maps (layers
in Arc-speak). Points and lines on top of ONE set of polygons works fine as you
have shown, however using two or more polygon maps (layers) does not seem to
work. I attached an example of what i am trying to achieve: Take for instance a
polygon representing Italy and you wanted it colored dark gray, then you want
to overlay on top of that an administrative map showing only the areas of Lazio
and Liguria colored in blue but no other administrative areas. The result would
look like the Italy_sample.png file i attached (I made is using ArcPro as i am
not in the office with access to our cluster). This is what is not working
using the d.mon=png, d.vect tools. Could you please try something similar and
see if it works for you (on linux)?v/rChris
On Tuesday, March 2, 2021, 2:38:45 PM EST, Helmut Kudrnovsky
<[email protected]> wrote:
>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