|
GRASS 8 Programmer's Manual 8.6.0dev(2026)-ddeab64dbf
|
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.
Macros | |
| #define | NOPG_UNUSED |
Functions | |
| int | V1_close_pg (struct Map_info *Map) |
| Close vector map (PostGIS layer) on level 1. | |
| int | V2_close_pg (struct Map_info *Map) |
| Close vector map (PostGIS layer) on topological level (write out fidx file) | |
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.
| #define NOPG_UNUSED |
Definition at line 26 of file close_pg.c.
Close vector map (PostGIS layer) on level 1.
| Map | pointer to Map_info structure |
Definition at line 39 of file close_pg.c.
References _, db_close_database_shutdown_driver(), DB_SQL_MAX, G_debug(), G_fatal_error(), G_free(), G_warning(), GV_MODE_RW, GV_MODE_WRITE, AMI_STREAM< T >::name(), NULL, Vect__execute_pg(), Vect__free_cache(), Vect__write_head(), VECT_OPEN, and Vect_save_frmt().
Close vector map (PostGIS layer) on topological level (write out fidx file)
| Map | pointer to Map_info structure |
Definition at line 116 of file close_pg.c.
References _, access, F_OK, G_debug(), G_fatal_error(), G_warning(), GPATH_MAX, GV_DIRECTORY, GV_TOPO_ELEMENT, AMI_STREAM< T >::name(), unlink, Vect__free_offset(), Vect__get_element_path(), VECT_OPEN, and Vect_save_fidx().
Referenced by Vect_close().