15 #include <grass/imagery.h>
28 const char *subgroup,
const char *
name)
30 char element[GPATH_MAX];
31 char group_name[GNAME_MAX], group_mapset[GMAPSET_MAX];
35 strcpy(group_name, group);
39 sprintf(element,
"%s/subgroup/%s/sig", group_name, subgroup);
42 sprintf(element,
"subgroup/%s/sig/%s", subgroup, name);
60 const char *subgroup,
const char *
name)
62 char element[GPATH_MAX];
63 char group_name[GNAME_MAX], group_mapset[GMAPSET_MAX];
67 strcpy(group_name, group);
70 sprintf(element,
"subgroup/%s/sig/%s", subgroup, name);
char * G_mapset(void)
current mapset name
sprintf(buf2,"%s", G3D_CATS_ELEMENT)
FILE * G_fopen_old_misc(const char *dir, const char *element, const char *name, const char *mapset)
open a database file for reading
FILE * I_fopen_signature_file_old(const char *group, const char *subgroup, const char *name)
Open signature file.
int G__make_mapset_element_misc(const char *dir, const char *name)
Create misc element in the current mapset.
FILE * I_fopen_signature_file_new(const char *group, const char *subgroup, const char *name)
Create signature file.
FILE * G_fopen_new_misc(const char *dir, const char *element, const char *name)
open a new database file
int G__name_is_fully_qualified(const char *fullname, char *name, char *mapset)
Check if map name is fully qualified (map @ mapset)