16 #include <grass/gis.h>
17 #include <grass/glocale.h>
46 struct Cell_head *cellhd)
50 char real_name[GNAME_MAX], real_mapset[GMAPSET_MAX];
66 is_reclass = (
G_is_reclass(name, mapset, real_name, real_mapset) > 0);
71 _(
"Unable to read header file for raster map <%s@%s>."),
73 tail = buf + strlen(buf);
74 sprintf(tail, _(
" It is a reclass of raster map <%s@%s> "),
75 real_name, real_mapset);
76 tail = buf + strlen(buf);
78 sprintf(tail, _(
"which is missing."));
80 sprintf(tail, _(
"whose header file can't be opened."));
88 G_warning(_(
"Unable to open header file for raster map <%s@%s>"),
100 sprintf(buf, _(
"Unable to read header file for raster map <%s@%s>."),
102 tail = buf + strlen(buf);
105 _(
" It is a reclass of raster map <%s@%s> whose header file is invalid."),
106 real_name, real_mapset);
109 sprintf(tail, _(
" Invalid format."));
110 tail = buf + strlen(buf);
sprintf(buf2,"%s", G3D_CATS_ELEMENT)
void G_free(void *buf)
Free allocated memory.
int G_get_cellhd(const char *name, const char *mapset, struct Cell_head *cellhd)
Read the raster header.
char * G_find_cell(char *name, const char *mapset)
find a raster map
int G_is_reclass(const char *name, const char *mapset, char *rname, char *rmapset)
reclass file?
char buf[GNAME_MAX+sizeof(G3D_DIRECTORY)+2]
G_warning("category support for [%s] in mapset [%s] %s", name, mapset, type)
char * G__read_Cell_head(FILE *fd, struct Cell_head *cellhd, int is_cellhd)
FILE * G_fopen_old(const char *element, const char *name, const char *mapset)
Open a database file for reading.