GRASS GIS 7 Programmer's Manual  7.9.dev(2021)-e5379bbd7
build_pg.c File Reference

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"
Include dependency graph for build_pg.c:

Go to the source code of this file.

Functions

int Vect_build_pg (struct Map_info *Map, int build)
 Build topology for PostGIS layer. More...
 
int Vect__clean_grass_db_topo (struct Format_info_pg *pg_info)
 Clean-up GRASS Topology tables. More...
 

Detailed Description

Vector library - Building topology for PostGIS layers.

Higher level functions for reading/writing/manipulating vectors.

Line offset (simple features only) is

  • centroids : FID
  • other types : index of the first record (which is FID) in offset array.

(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.

Author
Martin Landa <landa.martin gmail.com>

Definition in file build_pg.c.

Function Documentation

◆ Vect__clean_grass_db_topo()

int Vect__clean_grass_db_topo ( struct Format_info_pg pg_info)

Clean-up GRASS Topology tables.

Parameters
pg_infopointer to Format_info_pg pg_info
Returns
0 on success
-1 on error

Definition at line 954 of file build_pg.c.

References Format_info_pg::conn, DB_SQL_MAX, Format_info_pg::toposchema_name, and Vect__execute_pg().

◆ Vect_build_pg()

int Vect_build_pg ( struct Map_info Map,
int  build 
)