[GRASS-user] replacement for d.mon in GRASS 7.0?

Glynn Clements glynn at gclements.plus.com
Tue Apr 12 16:49:10 EDT 2011


alonso wrote:

> I'm trying to use  ximgview for the first time but when I use this code:
> 
> export GRASS_PNGFILE=map.bmp
> d.erase
> ximgview map.bmp &
> d.rast mde
> d.vect countries type=boundary
> export GRASS_PNG_MAPPED=TRUE
> 
> d.vect erases the mde raster map (the same with type=centroids). It
> draws what it is supposed to draw but erasing (covering?) the previous
> layer.
> 
> I made a mistake or is ximgview just for simple stuff?

You need to set GRASS_PNG_READ=TRUE, but only once the image file
already exists, e.g.:

	export GRASS_PNGFILE=map.bmp
	export GRASS_PNG_MAPPED=TRUE
	d.erase
	export GRASS_PNG_READ=TRUE
	ximgview map.bmp &
	d.rast mde
	d.vect countries type=boundary
	...

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-user mailing list