16 #include <grass/gis.h>
17 #include <grass/imagery.h>
18 #include <grass/glocale.h>
35 char element[GPATH_MAX];
36 char group_name[GNAME_MAX], mapset[GMAPSET_MAX];
41 G_warning(_(
"Unable to create signature file <%s> for subgroup <%s> "
42 "of group <%s> - <%s> is not current mapset"),
43 name, subgroup, group, mapset);
46 strcpy(group_name, group);
50 sprintf(element,
"%s/subgroup/%s/sigset", group_name, subgroup);
53 sprintf(element,
"subgroup/%s/sigset/%s", subgroup, name);
57 G_warning(_(
"Unable to create signature file <%s> for subgroup <%s> "
59 name, subgroup, group);
79 char element[GPATH_MAX];
82 sprintf(element,
"subgroup/%s/sigset/%s", subgroup, name);
86 G_warning(_(
"Unable to open signature file <%s> for subgroup <%s> "
char * G_mapset(void)
current mapset name
sprintf(buf2,"%s", G3D_CATS_ELEMENT)
FILE * I_fopen_sigset_file_old(const char *group, const char *subgroup, const char *name)
Open existing signiture file in given group/subgroup.
FILE * G_fopen_old_misc(const char *dir, const char *element, const char *name, const char *mapset)
open a database file for reading
int G__make_mapset_element_misc(const char *dir, const char *name)
Create misc element in the current mapset.
G_warning("category support for [%s] in mapset [%s] %s", name, mapset, type)
FILE * I_fopen_sigset_file_new(const char *group, const char *subgroup, const char *name)
Create new signiture file in given group/subgroup.
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)