123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- #ifndef GRASS_SITE_H
- #define GRASS_SITE_H
- #include <grass/raster.h>
- #include <grass/vector.h>
- #define MAX_SITE_STRING 1024
- #define MAX_SITE_LEN 4096
- typedef struct
- {
- double east, north;
- double *dim;
- int dim_alloc;
- RASTER_MAP_TYPE cattype;
- CELL ccat;
- FCELL fcat;
- DCELL dcat;
- int str_alloc;
- char **str_att;
- int dbl_alloc;
- double *dbl_att;
- } Site;
- typedef struct
- {
- const char *name, *desc, *form, *labels, *stime;
- struct TimeStamp *time;
- } Site_head;
- /* Some defines for which column type to use */
- #define SITE_COL_NUL 0
- #define SITE_COL_DIM 1
- #define SITE_COL_DBL 2
- #define SITE_COL_STR 3
- /*!
- \brief XYZ site struct.
- Note the use of a union for the cat value is different than the Site
- struct.
- */
- typedef struct
- {
- double x, y, z;
- RASTER_MAP_TYPE cattype;
- union
- {
- double d;
- float f;
- int c;
- } cat;
- } SITE_XYZ;
- struct zstruct
- {
- double x, y, z;
- };
- typedef struct zstruct Z;
- #include <grass/defs/site.h>
- #endif
|