[GRASS-user] How to generate a vector graphics file from GRASS CLI?
Nikos Alexandris
nik at nikosalexandris.net
Tue Jan 29 00:43:49 PST 2019
* Ken Mankoff <mankoff at gmail.com> [2019-01-29 08:43:56 +0100]:
>Hi,
>
>I'm trying to generate a vector graphics file (PDF, but EPS or PS is fine) from the GRASS CLI. I'd like to have both raster and vector output. When I follow the simple examples from PSDRIVER or CAIRO the result is always the same - only the last graphic appears. It is as though there is a "d.erase" between every command.
>
>From https://grass.osgeo.org/grass76/manuals/psdriver.html
>
>export GRASS_RENDER_IMMEDIATE=ps
>export GRASS_RENDER_TRUECOLOR=TRUE
>g.region raster=elevation
>d.rast elevation
>d.vect roadsmajor color=red
>
>Only shows roads, no elevation.
Same here, with a different raster and vector map. Drawing my raster
map gives a 48M file. Then, drawing my vector map ends up with a 1.18M
file.
Nikos
[rest deleted]
More information about the grass-user
mailing list