GRASS GIS 8 Programmer's Manual
8.5.0dev(2024)-d6dec75dd4
|
Vector library - Building topology for PostGIS layers. More...
#include <grass/vector.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 | Vect_build_pg (struct Map_info *Map NOPG_UNUSED, int build NOPG_UNUSED) |
Build topology for PostGIS layer. More... | |
int | Vect__clean_grass_db_topo (struct Format_info_pg *pg_info) |
Clean-up GRASS Topology tables. More... | |
Vector library - Building topology for PostGIS layers.
Higher level functions for reading/writing/manipulating vectors.
Line offset (simple features only) is
(C) 2012-2013 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 build_pg.c.
#define NOPG_UNUSED |
Definition at line 42 of file build_pg.c.
int Vect__clean_grass_db_topo | ( | struct Format_info_pg * | pg_info | ) |
Clean-up GRASS Topology tables.
pg_info | pointer to Format_info_pg pg_info |
Definition at line 998 of file build_pg.c.
References Format_info_pg::conn, DB_SQL_MAX, Format_info_pg::toposchema_name, and Vect__execute_pg().
int Vect_build_pg | ( | struct Map_info *Map | NOPG_UNUSED, |
int build | NOPG_UNUSED | ||
) |
Build topology for PostGIS layer.
Build levels:
Map | pointer to Map_info structure |
build | build level |
Definition at line 63 of file build_pg.c.
References _, Format_info_offset::array, Plus_head::built, Format_info_pg::conn, Format_info_pg::db_name, FALSE, Format_info_pg::feature_type, Format_info_pg::fid_column, G_debug(), G_free(), G_message(), G_warning(), G_zero(), GV_BUILD_BASE, GV_BUILD_NONE, Format_info_pg::inTransaction, Format_info_pg::offset, SF_GEOMETRY, Format_info_pg::table_name, Format_info_pg::toposchema_name, Vect__build_sfa(), Vect__execute_pg(), Vect_get_finfo_format_info(), and Vect_get_finfo_geometry_type().