Cairo driver: Difference between revisions
Jump to navigation
Jump to search
(examples) |
m (→Examples) |
||
Line 24: | Line 24: | ||
d.mon start=cairo | d.mon start=cairo | ||
d.rast map=elevation.10m | d.rast map=elevation.10m | ||
d.vect map=streams width=1 color=blue | d.vect map=streams width=1 color=blue fcolor=aqua type=area,line | ||
d.vect map=roads width=2 | d.vect map=roads width=2 | ||
d.mon stop=cairo | d.mon stop=cairo | ||
Line 33: | Line 33: | ||
d.mon x0 | d.mon x0 | ||
d.rast map=elevation.10m | d.rast map=elevation.10m | ||
d.vect map=streams width=1 color=blue | d.vect map=streams width=1 color=blue fcolor=aqua type=area,line | ||
d.vect map=roads width=2 | d.vect map=roads width=2 | ||
d.out.file -c sf_cairo format=png size=800,800 | d.out.file -c sf_cairo format=png size=800,800 |
Revision as of 09:19, 22 November 2007
Cairo display driver
(under development)
based on this grass-dev thread:
http://thread.gmane.org/gmane.comp.gis.grass.devel/22786
To compile GRASS 6.3 with Cairo support, make sure you have the cairo.h include file (in Debian/Etch it's in the libcairo2-dev package)
Then build grass with:
make USE_CAIRO=1
Examples
Example using the driver directly:
export GRASS_TRUECOLOR=TRUE export GRASS_CAIROFILE=spearfish.png export GRASS_WIDTH=800 export GRASS_HEIGHT=800 d.mon start=cairo d.rast map=elevation.10m d.vect map=streams width=1 color=blue fcolor=aqua type=area,line d.vect map=roads width=2 d.mon stop=cairo
Example using d.out.file:
d.mon x0 d.rast map=elevation.10m d.vect map=streams width=1 color=blue fcolor=aqua type=area,line d.vect map=roads width=2 d.out.file -c sf_cairo format=png size=800,800