GRASS GIS 7 Programmer's Manual
7.9.dev(2021)-e5379bbd7
|
Vector library - clean geometry (dangles) More...
Go to the source code of this file.
Macros | |
#define | REMOVE_DANGLE 0 |
#define | CHTYPE_DANGLE 1 |
#define | SELECT_DANGLE 2 |
Functions | |
void | Vect_remove_dangles (struct Map_info *Map, int type, double maxlength, struct Map_info *Err) |
Remove dangles from vector map. More... | |
void | Vect_chtype_dangles (struct Map_info *Map, double maxlength, struct Map_info *Err) |
Change boundary dangles to lines. More... | |
void | Vect_select_dangles (struct Map_info *Map, int type, double maxlength, struct ilist *List) |
Select dangles from vector map. More... | |
Vector library - clean geometry (dangles)
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.
Definition in file dangles.c.
Change boundary dangles to lines.
Change boundary dangles to lines.
Boundary is considered to be a dangle if on at least one end node is no other boundary. If a dangle is formed by more boundaries, such string of boundaries is taken as one dangle.
Optionally deleted dangles are written to error map.
Input map must be opened on level 2 for update at least on GV_BUILD_BASE.
Map | input map where have to be deleted | |
maxlength | maxlength of dangles or -1 for all dangles | |
[out] | Err | vector map where deleted dangles are written or NULL |
void Vect_remove_dangles | ( | struct Map_info * | Map, |
int | type, | ||
double | maxlength, | ||
struct Map_info * | Err | ||
) |
Remove dangles from vector map.
Remove dangles of given type shorter than maxlength from vector map.
Line is considered to be a dangle if on at least one end node is no other line of given type(s). If a dangle is formed by more lines, such string of lines is taken as one dangle and either deleted are all parts or nothing.
Optionally deleted dangles are written to error map.
Input map must be opened on level 2 for update.
Map | input map where have to be deleted | |
type | type of dangles (GV_LINES, GV_LINE or GV_BOUNDARY) | |
maxlength | maxlength of dangles or -1 for all dangles | |
[out] | Err | vector map where deleted dangles are written or NULL |
Select dangles from vector map.
Remove dangles of given type shorter than maxlength from vector map.
Line is considered to be a dangle if on at least one end node is no other line of given type(s). If a dangle is formed by more lines, such string of lines is taken as one dangle.
Input map must be opened on level 2 for update.
Map | input map where have to be deleted | |
type | type of dangles (GV_LINES, GV_LINE or GV_BOUNDARY) | |
maxlength | maxlength of dangles or -1 for all dangles | |
[out] | List | list of selected features |