GRASS GIS 8 Programmer's Manual  8.4.0dev(2024)-7413740dd8
Vector Library Structures and Functions

Table of Contents

by GRASS Development Team (https://grass.osgeo.org)

List of vector library data structures

All data structure used by the vector library are defined in include/vect/dig_structs.h. See the lists below.

Major

Supporting

Format-related

DB-related

Geometry-related

Category-related

Topology-related

Misc

Obsolete

List of vector library functions

The vector library provides the GRASS programmer with routines to process vector data. The routines in the vector library are presented in functional groupings, rather than in alphabetical order. The order of presentation will, it is hoped, provide better understanding of how the library is to be used, as well as show the interrelationships among the various routines. Note that a good way to understand how to use these routines is to look at the source code for GRASS modules which use them.

Note: All routines start with one of following prefixes Vect_, V1_, V2_ or dig_. To avoid name conflicts, programmers should not create variables or routines in their own modules which use this prefix.

The Vect_*() functions are the programmer's API for GRASS vector programming. The programmer should use only routines with this prefix.

Vector area functions

Vector array functions

Vector bounding box functions

Vector break lines functions

Vector break polygons functions

Vector bridges functions

Vector buffer functions

Vector build functions

Main build functions

Native build functions

OGR build functions

Vector categories functions

Vector clean nodes functions

Vector close functions

Vector constraint functions

Vector dangles functions

Vector dbcolumns functions

Vector error functions

  • Vect_get_fatal_error()
  • Vect_set_fatal_error()

Vector layer (field) functions

(note: vector layer is historically called "field")

Vector find functions

Vector graph functions

Vector header functions

Vector history functions

Vector header functions

Vector intersection functions

Vector valid map name functions

Vector level functions

Vector topological (level 2) functions

Vector feature functions

Vector list functions

Vector map functions

Vector merge line functions

Vector network functions

Vector open functions

Vector overlay functions

Vector polygon functions

Vector read functions

Level 1 and 2

Level 2 only

Vector remove functions

Vector remove functions

Vector remove duplicates functions

Vector rewind functions

Vector select functions

Vector index functions

Vector spatial index functions

Vector category index functions

(note: vector layer is historically called "field")

Vector snap functions

Vector TIN functions

Vector type option functions

Vector delete functions

Level 2 only

Vector write functions

Level 1 and 2

Level 2 only

Vector ASCII functions

Vector Simple Feature Access API

Functions from GRASS Simple Feature API (in progress, incomplete).

Vector GEOS functions

Note: The functions are available only if GRASS is compiled with –with-geos switch.

Vector PostgreSQL/PostGIS functions

Note: The functions are available only if GRASS is compiled with –with-postgres switch.

(For internal use only)