[GRASSLIST:5931] Re: Patchin big rasters in grass: how big can they be?

Glynn Clements glynn at gclements.plus.com
Mon Feb 28 06:11:33 EST 2005


Carlos Henrique Grohmann wrote:

> I'm trying to patch two big raster files (trying to produce a srtm map of
> Brazil), in a region of 48600 rows and 51600 cols. the mas are about 1.6Gb
> each. My grass was compiled with 
> 
> CFLAGS="-O3 -D_FILE_OFFSET_BITS=64 -mcpu=pentiumpro -Wall" LDFLAGS="-s"
> 
> but r.patch gives me an error, like: can't write to collumn 31376...
> 
> is there a limitation of the raster size?

Apart from file size issues, anything which counts the total number of
cells will have problems when a map has more than 2^31 (2147483648)
cells (as yours does: 48600 * 51600 = 2507760000).

Also, I can't see anything resembling that error message in the source
code for either r.patch or libgis.

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




More information about the grass-user mailing list