[GRASS5] r.mapcalc question

Glynn Clements glynn at gclements.plus.com
Mon Feb 7 15:10:43 EST 2005


David Piasecki wrote:

> Anyway, I've got another small question. Right now 
> I'm determining what the region encompassing a set of jpg images is by 
> doing a d.rast -o image# for all images, followed by a d.extend. That 
> works, but it's kind of annoying to have to draw to a graphics monitor 
> when I don't need to. Is there a way to set the region based on a 
> collection of raster data without having to draw?

In 5.7, you can use:

	g.region raster=map1,map2,map3,...

This will set the region to encompass all of the specified raster
maps.

BTW, the manpage is out of date; it implies that the raster= option
only accepts a single argument.

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




More information about the grass-dev mailing list