get_cellhd.c File Reference

#include <string.h>
#include <stdlib.h>
#include <grass/gis.h>
#include <grass/glocale.h>

Include dependency graph for get_cellhd.c:

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


Function Documentation

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.

Parameters:
name 
mapset 
cellhd 
Returns:
int

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().


Generated on Sun Apr 6 17:32:19 2008 for GRASS by  doxygen 1.5.5