[GRASS-user] Some questions about d.vect and d.rast

Johannes Radinger jradinger at gmx.at
Thu Apr 28 12:03:18 EDT 2011


Hello GRASS community!

First I've two general questions about d.vect:
1) Is it possible to use own symbol for the point icons?
2) How can I change the line type (e.g dashed line, etc.)?

I also want to use  d.vect and d.rast in a python script after 
some other calculations but the maps aren't displayed in the
running display-window.

I tried excactly:
grass.run_command("d.vect", map="points", display="shape,cat", color="red", icon="basic/pushpin", fcolor="red", size="10", attrcol="cat")
grass.run_command("d.vect", map="line", color="230:230:230")
grass.run_command("d.rast", map="raster")


and got following command console output:

PNG: GRASS_TRUECOLOR status: TRUE
PNG: collecting to file: map.png,
GRASS_WIDTH=798, GRASS_HEIGHT=546
PNG: GRASS_TRUECOLOR status: TRUE
PNG: collecting to file: map.png,
GRASS_WIDTH=798, GRASS_HEIGHT=546
PNG: GRASS_TRUECOLOR status: TRUE
PNG: collecting to file: map.png,
GRASS_WIDTH=798, GRASS_HEIGHT=546

Is it possible to use these commands in a python script?

cheers
/Johannes


More information about the grass-user mailing list