17 #include <grass/gis.h> 18 #include <grass/raster.h> 19 #include <grass/glocale.h> 60 is_reclass = (
Rast_is_reclass(name, mapset, real_name, real_mapset) > 0);
65 ?
_(
"However, that raster map is missing." 66 " Perhaps, it was deleted by mistake.")
67 :
_(
"However, header file of that raster map can't be" 68 " opened. It seems that it was corrupted after" 69 " creating the reclass raster map.");
70 G_fatal_error(
_(
"Unable to read header file for raster map <%s@%s>. " 71 "It is a reclass of raster map <%s@%s>. %s"), name,
72 mapset, real_name, real_mapset, detail);
78 G_fatal_error(
_(
"Unable to open header file for raster map <%s@%s>." 79 " It seems that some previous step failed and" 80 " created an incomplete raster map."), name,
const char * G_find_raster(char *name, const char *mapset)
Find a raster map.
2D/3D raster map header (used also for region)
void G__read_Cell_head(FILE *fd, struct Cell_head *cellhd, int is_cellhd)
Read cell header (for internal use only)
void G_fatal_error(const char *msg,...)
Print a fatal error message to stderr.
void Rast_get_cellhd(const char *name, const char *mapset, struct Cell_head *cellhd)
Read the raster header.
int Rast_is_reclass(const char *name, const char *mapset, char *rname, char *rmapset)
Check if raster map is reclassified.
FILE * G_fopen_old(const char *element, const char *name, const char *mapset)
Open a database file for reading.