3 #include <grass/imagery.h>
4 #include <grass/glocale.h>
23 G_warning(_(
"Unable to create file [%s] of group [%s in %s]"),
36 G_warning(_(
"Unable to open file [%s] of group [%s in %s]"),
49 G_warning(_(
"Unable to find file [%s] of group [%s in %s]"),
52 return ((FILE *)
NULL);
57 G_warning(_(
"Unable to open file [%s] of group [%s in %s]"),
65 const char *subgroup,
const char *
file)
68 char element[GNAME_MAX * 2];
71 sprintf(element,
"%s/subgroup/%s", group, subgroup);
75 sprintf(element,
"subgroup/%s/%s", subgroup, file);
79 G_warning(_(
"Unable to create file [%s] for subgroup [%s] of group [%s in %s]"),
87 const char *subgroup,
const char *
file)
90 char element[GNAME_MAX * 2];
93 sprintf(element,
"%s/subgroup/%s", group, subgroup);
97 sprintf(element,
"subgroup/%s/%s", subgroup, file);
101 G_warning(_(
"Unable to open file [%s] for subgroup [%s] of group [%s in %s]"),
109 const char *subgroup,
const char *
file)
112 char element[GNAME_MAX * 2];
116 G_warning(_(
"Unable to find file [%s] for subgroup [%s] of group [%s in %s]"),
119 return ((FILE *)
NULL);
123 sprintf(element,
"subgroup/%s/%s", subgroup, file);
127 G_warning(_(
"Unable to open file [%s] for subgroup [%s] of group [%s in %s]"),
char * G_mapset(void)
current mapset name
sprintf(buf2,"%s", G3D_CATS_ELEMENT)
FILE * I_fopen_subgroup_file_append(const char *group, const char *subgroup, const char *file)
FILE * I_fopen_group_file_append(const char *group, const char *file)
FILE * G_fopen_old_misc(const char *dir, const char *element, const char *name, const char *mapset)
open a database file for reading
FILE * G_fopen_append_misc(const char *dir, const char *element, const char *name)
FILE * I_fopen_subgroup_file_old(const char *group, const char *subgroup, const char *file)
FILE * I_fopen_subgroup_file_new(const char *group, const char *subgroup, const char *file)
FILE * I_fopen_group_file_old(const char *group, const char *file)
FILE * I_fopen_group_file_new(const char *group, const char *file)
int I_find_group_file(const char *group, const char *file)
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 * G_fopen_new_misc(const char *dir, const char *element, const char *name)
open a new database file
int I_find_subgroup_file(const char *group, const char *subgroup, const char *file)