GRASS GIS 8 Programmer's Manual
8.5.0dev(2024)-36359e2344
|
Vector library - clean geometry (remove duplicates) More...
Go to the source code of this file.
Functions | |
void | Vect_remove_duplicates (struct Map_info *Map, int type, struct Map_info *Err) |
Remove duplicate features from vector map. More... | |
int | Vect_line_check_duplicate (const struct line_pnts *APoints, const struct line_pnts *BPoints, int with_z) |
Check for duplicate lines. More... | |
Vector library - clean geometry (remove duplicates)
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 remove_duplicates.c.
int Vect_line_check_duplicate | ( | const struct line_pnts * | APoints, |
const struct line_pnts * | BPoints, | ||
int | with_z | ||
) |
Check for duplicate lines.
Note that lines must be pruned with Vect_line_prune() before passed to Vect_line_check_duplicate(), as done by Vect_remove_duplicates()
APoints | first line geometry |
BPoints | second line geometry |
Definition at line 219 of file remove_duplicates.c.
References line_pnts::n_points, line_pnts::x, line_pnts::y, and line_pnts::z.
Remove duplicate features from vector map.
Remove duplicate lines of given types from vector map. Duplicate lines may be optionally written to error map. Input map must be opened on level 2 for update. Categories are merged. GV_BUILD_BASE is sufficient.
[in,out] | Map | vector map where duplicate lines will be deleted |
type | type of line to be delete | |
[out] | Err | vector map where duplicate lines will be written or NULL |
Definition at line 69 of file remove_duplicates.c.