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

Request Tracker grass-bugs at intevation.de
Thu Aug 24 08:11:12 EDT 2006


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. (my gdalwarp is also a standard debian binary, GDAL 1.3.1.0, released 2005/10/04.)
on the spearfish60 data set I get the following:


GRASS 6.0.2 (spearfish60):

# exemplary data
d.rast elevation.dem
# set to arbitrary region
g.region n=4926900 s=4923600 e=604800 w=601200
d.redraw

# export to tiff
r.out.tiff input=elevation.dem output=tmp1

# the resulting "tmp1.tif" is equal to 
g.region  n=4926900 s=4923600 e=604800 w=601200
d.redraw
# -> as expected


# export to gtiff
r.out.gdal input=elevation.dem output=tmp2.tif type=UInt16

# the resulting "tmp2.tif" is equal to the full raster file:
g.region county
d.redraw


-------------------------------------------- Managed by Request Tracker




More information about the grass-dev mailing list