#include <string.h>
#include <stdlib.h>
#include <grass/gis.h>
#include <grass/glocale.h>
Go to the source code of this file.
Functions | |
int | G_get_cellhd (char *name, char *mapset, struct Cell_head *cellhd) |
read the raster header |
int G_get_cellhd | ( | char * | name, | |
char * | mapset, | |||
struct Cell_head * | cellhd | |||
) |
read the raster header
The raster header for the raster file name in the specified mapset is read into the cellhd structure. If there is an error reading the raster header file, a diagnostic message is printed and -1 is returned. Otherwise, 0 is returned.
name | ||
mapset | ||
cellhd |
Definition at line 46 of file get_cellhd.c.
References G__read_Cell_head(), G_find_cell(), G_fopen_old(), G_free(), G_is_reclass(), G_warning(), and NULL.
Referenced by G__check_for_auto_masking(), and G__open_cell_old().