GRASS GIS 7 Programmer's Manual
7.9.dev(2021)-e5379bbd7
|
Vector library - Close map (PostGIS) More...
#include <stdlib.h>
#include <unistd.h>
#include <grass/vector.h>
#include <grass/dbmi.h>
#include <grass/glocale.h>
#include "local_proto.h"
#include "pg_local_proto.h"
Go to the source code of this file.
Functions | |
int | V1_close_pg (struct Map_info *Map) |
Close vector map (PostGIS layer) on level 1. More... | |
int | V2_close_pg (struct Map_info *Map) |
Close vector map (PostGIS layer) on topological level (write out fidx file) More... | |
Vector library - Close map (PostGIS)
Higher level functions for reading/writing/manipulating vectors.
(C) 2011 by the GRASS Development Team
This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.
Definition in file close_pg.c.
int V1_close_pg | ( | struct Map_info * | Map | ) |
Close vector map (PostGIS layer) on level 1.
Map | pointer to Map_info structure |
Definition at line 36 of file close_pg.c.
References _, Format_info_pg::cache, Format_info_pg::conn, Format_info_pg::cursor_name, db_close_database_shutdown_driver(), Format_info_pg::db_name, DB_SQL_MAX, Format_info_pg::dbdriver, Format_info_pg::fi, Format_info_pg::fid_column, Map_info::fInfo, G_debug(), G_fatal_error(), G_free(), G_warning(), Format_info_pg::geom_column, GV_MODE_RW, GV_MODE_WRITE, Map_info::mapset, Map_info::mode, Map_info::name, NULL, Format_info::pg, Format_info_pg::res, Format_info_pg::schema_name, Format_info_pg::topogeom_column, Format_info_pg::toposchema_name, Vect__execute_pg(), Vect__free_cache(), Vect__write_head(), VECT_OPEN, and Vect_save_frmt().
int V2_close_pg | ( | struct Map_info * | Map | ) |
Close vector map (PostGIS layer) on topological level (write out fidx file)
Map | pointer to Map_info structure |
Definition at line 112 of file close_pg.c.
References _, Map_info::fInfo, G_debug(), G_fatal_error(), G_warning(), GPATH_MAX, GV_DIRECTORY, GV_TOPO_ELEMENT, Map_info::mapset, Map_info::name, Format_info_pg::offset, Format_info::pg, Format_info_pg::toposchema_name, Vect__free_offset(), Vect__get_element_path(), VECT_OPEN, and Vect_save_fidx().