#include <stdio.h>#include <stdlib.h>#include <string.h>#include <errno.h>#include "gis.h"#include "glocale.h"#include "site.h"Include dependency graph for readsites_xyz.c:

Go to the source code of this file.
Functions | |
| SITE_XYZ * | G_alloc_site_xyz (size_t num) |
Allocate an array of SITE_XYZ with size num. | |
| void | G_free_site_xyz (SITE_XYZ *theSites) |
Free a previously allocated array of SITE_XYZ. | |
| int | G_readsites_xyz (FILE *fdsite, int type, int index, int size, struct Cell_head *region, SITE_XYZ *xyz) |
Read a chunk of a site file into a SITE_XYZ array setting the series Z dimension from the specified attribute. The fdsite parameter is the FILE * for the sites file; type is the attribute type to use for the z variable value; the index is the 1--based index value for the attribute; the size is the size of the SITE_XYZ array passed to the function; the region is a pointer to a struct Cell_head for the current region or NULL; and, finally, xyz is a pointer to an array of SITE_XYZ which will be populated. The return value is the number of records read or EOF. | |
| SITE_XYZ* G_alloc_site_xyz | ( | size_t | num | ) |
Allocate an array of SITE_XYZ with size num.
| num |
Definition at line 41 of file readsites_xyz.c.
References G_malloc(), and NULL.
| void G_free_site_xyz | ( | SITE_XYZ * | theSites | ) |
Free a previously allocated array of SITE_XYZ.
| xyz |
Definition at line 62 of file readsites_xyz.c.
References G_free().
| int G_readsites_xyz | ( | FILE * | fdsite, | |
| int | type, | |||
| int | index, | |||
| int | size, | |||
| struct Cell_head * | region, | |||
| SITE_XYZ * | xyz | |||
| ) |
Read a chunk of a site file into a SITE_XYZ array setting the series Z dimension from the specified attribute. The fdsite parameter is the FILE * for the sites file; type is the attribute type to use for the z variable value; the index is the 1--based index value for the attribute; the size is the size of the SITE_XYZ array passed to the function; the region is a pointer to a struct Cell_head for the current region or NULL; and, finally, xyz is a pointer to an array of SITE_XYZ which will be populated. The return value is the number of records read or EOF.
| fdsite | ||
| type | ||
| index | ||
| size | ||
| region | ||
| xyz |
Definition at line 93 of file readsites_xyz.c.
References G_fatal_error(), G_site_free_struct(), G_site_in_region(), G_site_new_struct(), and NULL.
1.4.7