34 static const char *keywords[] = {
"and",
"or",
"not",
NULL};
40 if (*s ==
'.' || *s == 0) {
42 _(
"Illegal vector map name <%s>. May not contain '.' or 'NULL'."),
48 if (!((*s >=
'A' && *s <=
'Z') || (*s >=
'a' && *s <=
'z'))) {
49 G_warning(
_(
"Illegal vector map name <%s>. Must start with a letter."),
55 if (!((*s >=
'A' && *s <=
'Z') || (*s >=
'a' && *s <=
'z') ||
56 (*s >=
'0' && *s <=
'9') || *s ==
'_')) {
58 _(
"Illegal vector map name <%s>. Character '%c' not allowed."),
63 for (i = 0; keywords[i]; i++)
65 G_warning(
_(
"Illegal vector map name <%s>. SQL keyword cannot be "
66 "used as vector map name."),
101 "current mapset (%s)"),
105 G_warning(
_(
"Output vector map name <%s> is not in the current "
119 G_fatal_error(
_(
"Output vector map name <%s> is not SQL compliant"),
123 G_warning(
_(
"Output vector map name <%s> is not SQL compliant"),
141 if (mapset ==
NULL) {
146 G_warning(
_(
"Vector map <%s> not found"), input);
int G_name_is_fully_qualified(const char *, char *, char *)
Check if map name is fully qualified (map @ mapset)
void void void void G_fatal_error(const char *,...) __attribute__((format(printf
void G_warning(const char *,...) __attribute__((format(printf
int int G_strcasecmp(const char *, const char *)
String compare ignoring case (upper or lower)
const char * G_find_vector2(const char *, const char *)
Find a vector map (look but don't touch)
const char * G_mapset(void)
Get current mapset name.
int Vect_check_input_output_name(const char *input, const char *output, int error)
Check for input and output vector map name.
int Vect_legal_filename(const char *s)
Check if output is legal vector name.
void output(const char *fmt,...)