40 return Map->fInfo.ogr.dsn;
44 G_warning(
_(
"GRASS is not compiled with PostgreSQL support"));
46 return Map->fInfo.pg.db_name;
50 G_debug(1,
"Native vector format detected for <%s>",
mname);
81 G_warning(
_(
"GRASS is not compiled with PostgreSQL support"));
84 Map->fInfo.pg.table_name);
88 G_debug(1,
"Native vector format detected for <%s>",
mname);
107 if (!
Map->fInfo.ogr.ds)
141 if (!
Map->fInfo.ogr.layer)
153 G_warning(
_(
"GRASS is not compiled with PostgreSQL support"));
163 "SELECT type,coord_dimension FROM geometry_columns "
164 "WHERE f_table_schema = '%s' AND f_table_name = '%s'",
171 G_debug(1,
"Unable to get feature type: %s",
214 if (
Map->fInfo.ogr.driver_name ||
Map->fInfo.pg.conninfo)
215 return &(
Map->fInfo);
233 char **
topogeom,
int *topo_geo_only)
243 if (
pg_info->toposchema_name) {
void G_free(void *)
Free allocated memory.
void G_warning(const char *,...) __attribute__((format(printf
int G_asprintf(char **, const char *,...) __attribute__((format(printf
void G_str_to_lower(char *)
Convert string to lower case.
char * G_store(const char *)
Copy string to allocated memory.
char * G_str_replace(const char *, const char *, const char *)
Replace all occurrences of old_str in buffer with new_str.
int G_debug(int, const char *,...) __attribute__((format(printf
const char * Vect_get_full_name(struct Map_info *)
Get fully qualified name of vector map.
#define GV_FORMAT_POSTGIS
PostGIS format.
#define GV_TOPO_POSTGIS
PostGIS topology - external PostGIS format.
#define GV_TOPO_NATIVE
GRASS topology - native format.
#define GV_FORMAT_OGR_DIRECT
OGR format (direct access)
#define GV_FORMAT_OGR
OGR format.
#define GV_TOPO_PSEUDO
Pseudo-topology - external simple features (OGR/PostGIS) format.