[GRASS5] MAXFILES in libgis too low

Hamish hamish_nospam at yahoo.com
Thu Mar 24 22:10:39 EST 2005


> while trying to export a few hundred maps into a
> big ERDAS/IMG multichannel file (using the GDAL/GRASS plugin
> and gdal_merge.py), I stumbled over
> 
>  lib/gis/G.h :#define MAXFILES    256
> 
> While this number is lower than 365 days, Radim
> reminded me of the memory allocation.
> 
> How to deal with this problem? Simply changing
> MAXFILES to a higher number will cause problems
> on handhelds.

Low memory or stripped down kernel maxfiles?



FWIW, boosting G.h to 400 (ie >365) for use with r.series works fine
for me.


see also the /* comments */ in here:
  http://freegis.org/cgi-bin/viewcvs.cgi/grass6/raster/r.patch/nfiles.h

there was some talk about this on the mailing list; maybe about the time
of rev1.4, Jul 2003?



Hamish




More information about the grass-dev mailing list