[GRASS5] raster filename length problem

Markus Neteler neteler at itc.it
Tue Jul 12 10:33:01 EDT 2005


Hi,

there is a problem with long filenames somewhere:

r.reclass.area modis_evi_class_forest out=modis_evi_class_forest_nosmall greater=100
d.rast modis_evi_class_forest_nosmall
WARNING: unable to open [modis_evi_class_forest_nosmall] in [bluetongue]
         since it is a reclass of
         [modis_evi_class_forest.clump.modis_evi_class_foresbluetongue] in
                                                            ^-PROBLEM
         [bluetongue] which does not exist
WARNING: unable to open raster map [modis_evi_class_forest_nosmall in
         bluetongue]
ERROR: Not able to open cellfile for [modis_evi_class_forest_nosmall]

I searched around in r.stats, r.clump, r.reclass, d.rast but didn't
find the problem. The desired filename interally created by r.reclass.area
will be of around 60 chars.

In the source code different name/mapset string length are scattered
around. What about changing the hardcoded ones to a single definition in
include/gis.h?

So far there is
 imagery.h:
        #define INAME_LEN 30
        char name[30]; /* length is not in sync with other definitions */
        char mapset[30];

which is definitly too short.

Opinions?

Markus




More information about the grass-dev mailing list