#include <string.h>
#include <grass/gis.h>
#include <grass/glocale.h>
Go to the source code of this file.
Functions | |
int | G_is_reclass (char *name, char *mapset, char *rname, char *rmapset) |
reclass file? | |
int | G_is_reclassed_to (char *name, char *mapset, int *nrmaps, char ***rmaps) |
get child reclass maps list | |
int | G_get_reclass (char *name, char *mapset, struct Reclass *reclass) |
int | G_free_reclass (struct Reclass *reclass) |
int | G_put_reclass (char *name, struct Reclass *reclass) |
int G_free_reclass | ( | struct Reclass * | reclass | ) |
int G_get_reclass | ( | char * | name, | |
char * | mapset, | |||
struct Reclass * | reclass | |||
) |
Definition at line 127 of file reclass.c.
References G_warning(), and NULL.
Referenced by G__open_cell_old().
int G_is_reclass | ( | char * | name, | |
char * | mapset, | |||
char * | rname, | |||
char * | rmapset | |||
) |
reclass file?
This function determines if the raster file name in mapset is a reclass file. If it is, then the name and mapset of the referenced raster file are copied into the r_name and r_mapset buffers. Returns 1 if name is a reclass file, 0 if it is not, and -1 if there was a problem reading the raster header for name.
name | ||
mapset | ||
r_name | ||
r_mapset |
Definition at line 30 of file reclass.c.
References NULL.
Referenced by G__mask_info(), and G_get_cellhd().
int G_is_reclassed_to | ( | char * | name, | |
char * | mapset, | |||
int * | nrmaps, | |||
char *** | rmaps | |||
) |
get child reclass maps list
This function generates a child reclass maps list from the cell_misc/reclassed_to file which stores this list. The cell_misc/reclassed_to file is written by G_put_reclass(). G_is_reclassed_to() is used by g.rename, g.remove and r.reclass to prevent accidentally deleting the parent map of a reclassed raster map.
name | ||
mapset | ||
nrmaps | ||
rmaps |
Definition at line 65 of file reclass.c.
References G__location_path(), G_malloc(), G_realloc(), and NULL.
int G_put_reclass | ( | char * | name, | |
struct Reclass * | reclass | |||
) |
Definition at line 224 of file reclass.c.
References G__location_path(), G_fatal_error(), G_is_c_null_value(), G_mapset(), G_warning(), and NULL.