[GRASS5] [bug #2238] (grass) r.series: support for wildcards in input filenames
Glynn Clements
glynn.clements at virgin.net
Tue Dec 2 20:28:26 EST 2003
Hamish wrote:
> I'd just point out that it should have a check against MAXFILES.
> [Maybe not in this case, I haven't studied how r.series works]
>
> Moreover, it would be good to have MAXFILES defined globally, such as
> with DEFAULT_BG_COLOR, etc.
>
>
> src/raster/r.patch/cmd/nfiles.h:
> ---------------------------------------------------------------------
> /* The number of cell files that can be patched together.
> *
> * All cell files will be opened at one time, so this number can not
> * be arbitrarily large.
> *
> * Must be smaller than MAXFILES as defined in src/libes/gis/G.h which
> * in turn must be smaller than the operating system's limit.
> * (Given by `cat /proc/sys/fs/file-max` in Linux 2.4)
> */
There isn't any inherent reason why there should be a maximum number
of files. G_open_cell_* could reasonably be changed to dynamically
[re]allocate the G__.fileinfo[] array. The OS doesn't have to have a
static limit.
--
Glynn Clements <glynn.clements at virgin.net>
More information about the grass-dev
mailing list