GRASS GIS 8 Programmer's Manual  8.5.0dev(2024)-d6dec75dd4
bridges.c File Reference

Vector library - clean geometry (bridges) More...

#include <stdlib.h>
#include <grass/vector.h>
#include <grass/rbtree.h>
#include <grass/glocale.h>
Include dependency graph for bridges.c:

Go to the source code of this file.

Functions

void Vect_remove_bridges (struct Map_info *Map, struct Map_info *Err, int *lines_removed, int *bridges_removed)
 Remove bridges from vector map. More...
 
void Vect_chtype_bridges (struct Map_info *Map, struct Map_info *Err, int *lines_changed, int *bridges_changed)
 Change type of bridges in vector map. More...
 

Detailed Description

Vector library - clean geometry (bridges)

Higher level functions for reading/writing/manipulating vectors.

(C) 2001-2009 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
Radim Blazek

Definition in file bridges.c.

Function Documentation

◆ Vect_chtype_bridges()

void Vect_chtype_bridges ( struct Map_info Map,
struct Map_info Err,
int *  lines_changed,
int *  bridges_changed 
)

Change type of bridges in vector map.

Change the type of bridges (type boundary) connecting areas to islands or 2 islands. Islands and areas must be already clean, i.e. without dangles. Bridge may be formed by more lines. Optionally changed bridges are written to error map. Input map must be opened on level 2 for update at least on level GV_BUILD_BASE.

Parameters
Mapinput map where bridges are changed
Errvector map where changed bridges are written or NULL
lines_changednumber of lines changed
bridges_changedErr number of bridges changed

Definition at line 69 of file bridges.c.

◆ Vect_remove_bridges()

void Vect_remove_bridges ( struct Map_info Map,
struct Map_info Err,
int *  lines_removed,
int *  bridges_removed 
)

Remove bridges from vector map.

Remove bridges (type boundary) connecting areas to islands or 2 islands. Islands and areas must be already clean, i.e. without dangles. Bridge may be formed by more lines. Optionally deleted bridges are written to error map. Input map must be opened on level 2 for update at least on level GV_BUILD_BASE

Parameters
Mapinput map where bridges are deleted
Errvector map where deleted bridges are written or NULL
lines_removednumber of lines removed
bridges_removedErr number of bridges removed

Definition at line 48 of file bridges.c.