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.
void Vect_chtype_bridges (struct Map_info *Map, struct Map_info *Err)
 Change type of bridges in vector map.

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:
Map input map where bridges are changed
Err vector 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:
Map input map where bridges are deleted
Err vector map where deleted bridges are written or NULL
Returns:

Definition at line 44 of file bridges.c.

Generated on Tue Apr 6 13:28:11 2010 for GRASS Programmer's Manual by  doxygen 1.6.3