GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
bridges.c File Reference

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

#include <stdlib.h>
#include <grass/gis.h>
#include <grass/Vect.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)
 Remove bridges from vector map. More...
 
void Vect_chtype_bridges (struct Map_info *Map, struct Map_info *Err)
 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-2008 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
Date
2001-2008

Definition in file bridges.c.

Function Documentation

void Vect_chtype_bridges ( struct Map_info *  Map,
struct Map_info *  Err 
)

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
Returns

Definition at line 65 of file bridges.c.

void Vect_remove_bridges ( struct Map_info *  Map,
struct Map_info *  Err 
)

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
Returns

Definition at line 44 of file bridges.c.