22 #include "local_proto.h" 25 #include "pg_local_proto.h" 56 PQclear(pg_info->
res);
74 PQfinish(pg_info->
conn);
131 if (access(file_path, F_OK) == 0)
139 G_warning(
_(
"Unable to save feature index file for vector map <%s>"),
146 G_fatal_error(
_(
"GRASS is not compiled with PostgreSQL support"));
char * name
Map name (for 4.0)
void void void void G_fatal_error(const char *,...) __attribute__((format(printf
char * Vect__get_element_path(char *file_path, const struct Map_info *Map, const char *element)
Get map element full path (internal use only)
#define GV_DIRECTORY
Name of vector directory.
int Vect_save_frmt(struct Map_info *)
Save format definition file for vector map.
void Vect__free_cache(struct Format_info_cache *cache)
void G_free(void *)
Free allocated memory.
#define GV_TOPO_ELEMENT
Native format, topology file.
struct Format_info fInfo
Format info for non-native formats.
int db_close_database_shutdown_driver(dbDriver *)
Close driver/database connection.
#define GV_MODE_RW
Read-write vector map open mode.
int V1_close_pg(struct Map_info *Map)
Close vector map (PostGIS layer) on level 1.
#define VECT_OPEN(Map)
Check if vector map is open.
void Vect__free_offset(struct Format_info_offset *offset)
char * mapset
Mapset name.
int Vect__execute_pg(PGconn *conn, const char *stmt)
Execute SQL statement.
void G_warning(const char *,...) __attribute__((format(printf
#define GV_MODE_WRITE
Write vector map open mode.
int Vect__write_head(const struct Map_info *)
Writes head information to text file (GV_HEAD_ELEMENT)
int Vect_save_fidx(struct Map_info *, struct Format_info_offset *)
Save feature index file for vector map.
int V2_close_pg(struct Map_info *Map)
Close vector map (PostGIS layer) on topological level (write out fidx file)
int G_debug(int, const char *,...) __attribute__((format(printf