[GRASS-dev] Re: GRASS 7 status overview

Glynn Clements glynn at gclements.plus.com
Sun Feb 14 21:50:47 EST 2010


Michael Barton wrote:

> >> It is unclear how r.external.out works. Does it make a GDAL-compatible
> >> file appear as a GRASS raster in a mapset? If so, shouldn't this be
> >> r.external.in? (i.e., it makes an external raster usable by GRASS)
> > 
> > r.external.out causes new raster maps to be created as files via GDAL.
> > 
> > Whereas r.external turns a specific file into a GRASS raster map,
> > r.external.out enables a mode whereby all new rasters are created as
> > files via GDAL.
> > 
> > It creates a key-value file named "GDAL" in the mapset directory
> > containing various parameters (output directory, file format, creation
> > parameters). If this file is present, Rast_open_*_new() and
> > Rast_put_*_row() go via GDAL.
> 
> So the files can be opened and used subsequently as GRASS files even
> though they are created in a non-GRASS format (e.g., geotiff)?

Yes. Files created this way are automatically linked as GRASS rasters
as if by r.external.

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


More information about the grass-dev mailing list