7
/* The same for old and new, format independent */
8
Site *G_site_new_struct(RASTER_MAP_TYPE cattype, int ndim, int ns, int nd);
9
void G_site_free_struct(Site * s);
10
int G_site_in_region(const Site * s, const struct Cell_head *region);
11
int G_site_d_cmp(const void *a, const void *b);
12
int G_site_c_cmp(const void *a, const void *b);
13
int G_site_s_cmp(const void *a, const void *b);
14
char *G_site_format(const Site * s, const char *fs, int id);
16
/* SITE_ATT * G_sites_get_atts (struct Map_info * ptr, int* cat); */
17
int G_sites_get_fields(struct Map_info *ptr, char ***cnames, int **ctypes,
19
void G_sites_free_fields(int ncols, char **cnames, int *ctypes, int *ndx);
21
/* Old version used by v.in.sites */
22
FILE *G_oldsites_open_old(const char *name, const char *mapset);
23
int G_oldsite_describe(FILE * p, int *dims, int *cat, int *strs, int *dbls);
24
int G_oldsite_get(FILE * p, Site * s);
25
int G__oldsite_get(FILE *, Site *, int);
27
/* New version based on vectors used in old, not updated sites modules */
28
int G_site_get(struct Map_info *p, Site * s);
29
int G_site_put(struct Map_info *p, const Site * s);
30
int G_site_describe(struct Map_info *p, int *dims, int *cat, int *strs,
32
int G_site_get_head(struct Map_info *p, Site_head * head);
33
int G_site_put_head(struct Map_info *p, Site_head * head);
34
struct Map_info *G_sites_open_old(const char *name, const char *mapset);
35
struct Map_info *G_sites_open_new(const char *name);
36
void G_sites_close(struct Map_info *);
37
char *G_find_sites(char *name, const char *mapset);
38
char *G_find_sites2(const char *name, const char *mapset);
39
char *G_ask_sites_new(const char *prompt, char *name);
40
char *G_ask_sites_old(const char *prompt, char *name);
41
char *G_ask_sites_any(const char *prompt, char *name);
42
char *G_ask_sites_in_mapset(const char *prompt, char *name);
43
int G__site_put(struct Map_info *, Site *, int);
45
struct Map_info *G_fopen_sites_old(const char *, const char *);
46
struct Map_info *G_fopen_sites_new(const char *);
47
int G_get_site(struct Map_info *, double *, double *, char **);
48
int G_put_site(struct Map_info *, double, double, const char *);