GRASS GIS 7 Programmer's Manual
7.9.dev(2021)-e5379bbd7
|
Vector library - clean geometry (merge lines/boundaries) More...
Go to the source code of this file.
Functions | |
int | Vect_merge_lines (struct Map_info *Map, int type, int *new_lines, struct Map_info *Err) |
Merge lines or boundaries in vector map. More... | |
Vector library - clean geometry (merge lines/boundaries)
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 merge_lines.c.
Merge lines or boundaries in vector map.
Merges lines specified by type in vector map. Useful for generalization and smoothing. Adjacent boundaries are merged as long as topology is maintained. Adjacent lines are merged as long as there are exactly two different lines with identical categories connected at a given node. Zero-length lines need to be removed first. GV_BUILD_BASE as topo build level is sufficient, areas need not be built.
Map | input vector map | |
type | feature type | |
[out] | Err | vector map where merged lines/boundaries will be written or NULL |
new_lines | pointer to where number of new lines/boundaries is stored or NULL |
Definition at line 78 of file merge_lines.c.