[GRASS-user] Re: script to generate georeferenced jpeg colored
images from FCELL/CELL rasters
Glynn Clements
glynn at gclements.plus.com
Sat Jan 5 19:14:15 EST 2008
G. Allegri wrote:
> exec `g.region rast="$RAST"`
This is bogus on two counts. First, g.region doesn't output a shell
command, so the use of exec and backticks makes no sense. Second,
shell scripts shouldn't change the current region; they should create
a temporary region with "g.region ... save=..." and use WIND_OVERRIDE.
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-user
mailing list