I am trying to save a raster and vector into a PNG file. The vector is overlayed on top of the raster map. I was only able to save the raster file into a png using r.out.png but without the vector.
[GIS] How to save a raster and vector into a single PNG file in GRASS
grasspngrastervector
Related Question
- [GIS] way of cutting a raster map that is displayed in the GRASS GIS Map Display
- [GIS] How to convert a vector boundary to a raster map
- [GIS] How to combine polygons in a vector with GRASS
- [GIS] How to render a multi-layered (raster + vector) map to a file (PDF, SVG or JPEG, PNG)
- [GIS] How to fill composer map with canvas data and export composition as png using Python script in QGIS
Best Answer
Try this:
This will basically render VECTOR layer on top RASTER layer to a file called
map.png
.Other things you could do with
d.mon start=png
-d.mon stop=png
:d.erase
to wipe the slate clean before committing withd.mon stop=png
Include the legend with
d.rast.leg
:Put the legend to a separate image with
d.legend
:Useful stuff..