[GRASS-dev] [bug #5043] (grass) r.out.gdal does not export "g.region -p"

Glynn Clements glynn at gclements.plus.com
Thu Aug 24 13:37:37 EDT 2006


Paul Kelly wrote:

> >> this bug's URL: http://intevation.de/rt/webrt?serial_num=5043
> >> -------------------------------------------------------------------------
> >>
> >> Subject: r.out.gdal does not export "g.region -p"
> >>
> >> Platform: GNU/Linux/x86
> >> grass obtained from: Other (CDROM etc)
> >> grass binary for platform: Downloaded precompiled Binaries
> >> GRASS Version: GRASS 6.0.2 (2006)
> >>
> >>
> >> r.out.gdal does export the region as defined in "g.region -p", but the full input raster file.
> >
> > I just found that it is pretty easy to support at least
> > the current region extent:
> 
> This would seem like a good example of why Glynn insisted on retaining 
> r.resample. r.resample to a temporary file and export that would achieve 
> the desired effect (i.e. consistent with other raster export modules) I 
> think? Although would require twice as much disk space. I agree it should 
> be made consistent (i.e. export based on the current region settings).

I would suggest that r.out.gdal should behave like other export
modules and use the current region. If you want "raw" export; you can
always use "g.region rast=..." first.

r.in.* modules are a special case, as you can't use "g.region rast="
before you've imported the raster.

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




More information about the grass-dev mailing list