[GRASS-user] How to generate a vector graphics file from GRASS CLI?

st_kiefer at web.de st_kiefer at web.de
Tue Jan 29 00:22:44 PST 2019


Hi Ken,
have you considered using ps.map?

https://grass.osgeo.org/grass76/manuals/ps.map.html

regards

Stefan

> Ken Mankoff <mankoff at gmail.com> hat am 29. Januar 2019 um 08:43 geschrieben:
>
>
> 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.
>
> I can get what I want with the PNG driver, but those graphics are not publication quality.
>
> Thanks,
>
>   -k.
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/grass-user


More information about the grass-user mailing list