export GRASS_RENDER_IMMEDIATE=cairo
map.png
.TRUE
, the Cairo driver will initialize the image from
the contents of GRASS_RENDER_FILE.TRUE
, the Cairo driver will map GRASS_RENDER_FILE as its framebuffer,
rather than using memory.export GRASS_RENDER_IMMEDIATE=cairo export GRASS_RENDER_FILE=nc_spm.png export GRASS_RENDER_WIDTH=800 export GRASS_RENDER_HEIGHT=800 export GRASS_RENDER_FILE_READ=TRUE g.region raster=elevation d.rast map=elevation d.vect map=streams width=1 color=blue fcolor=aqua type=area,line d.vect map=roadsmajor width=2
export GRASS_RENDER_IMMEDIATE=cairo export GRASS_RENDER_FILE=nc_spm.pdf export GRASS_RENDER_WIDTH=800 export GRASS_RENDER_HEIGHT=800 g.region vector=roadsmajor # activate vector font d.font Vera d.vect map=roadsmajor layer=1 display=shape attrcolumn=ROAD_NAME lcolor=0:90:255
Example: using the driver to generate a PDF raster file with a raster map (bash-syntax):
export GRASS_RENDER_IMMEDIATE=cairo export GRASS_RENDER_FILE=nc_spm.pdf export GRASS_RENDER_WIDTH=800 export GRASS_RENDER_HEIGHT=800 g.region raster=elevation d.rast map=elevation
export GRASS_RENDER_IMMEDIATE=cairo export GRASS_RENDER_FILE=vectormap.svg g.region vector=roadsmajor d.vect map=roadsmajor -c
--with-cairo
when configuring GRASS. This
requires a reasonably recent version of the Cairo libraries
and a working pkg-config
.
Antialiasing is enabled by default for bitmap formats. There is currently no way of disabling this.
The resolution of the output images is defined by current region
extents. Use g.region -p
to get the number of rows and cols
and use the environment variables to set the image size. If you would
like a larger image, multiply both rows and cols by the same whole
number to preserve the aspect ratio.
Cairo supports true vector format output whenever possible. However, if the selected format doesn't support a necessary feature, Cairo may fall back on rendering a bitmap representation of the image wrapped in the selected vector format.
d.rast, d.vect, d.mon, d.erase, d.redraw
Available at: Cairo DISPLAY DRIVER source code (history)
Latest change: Tuesday Dec 17 20:17:20 2024 in commit: d962e90c026708a4815ea2b9f46c0e84c17de22d
Main index | Topics index | Keywords index | Graphical index | Full index
© 2003-2024 GRASS Development Team, GRASS GIS 8.4.1dev Reference Manual