GRASS GIS 7 Programmer's Manual
7.9.dev(2021)-e5379bbd7
|
Vector library - clean geometry (remove small areas) More...
Go to the source code of this file.
Functions | |
int | Vect_remove_small_areas_nat (struct Map_info *, double, struct Map_info *, double *) |
int | Vect_remove_small_areas_ext (struct Map_info *, double, struct Map_info *, double *) |
int | Vect_remove_small_areas (struct Map_info *Map, double thresh, struct Map_info *Err, double *removed_area) |
Remove small areas from the map map. More... | |
Vector library - clean geometry (remove small areas)
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_areas.c.
int Vect_remove_small_areas | ( | struct Map_info * | Map, |
double | thresh, | ||
struct Map_info * | Err, | ||
double * | removed_area | ||
) |
Remove small areas from the map map.
Centroid of the area and the longest boundary with adjacent area is removed. Map topology must be built GV_BUILD_CENTROIDS.
[in,out] | Map | vector map |
thresh | maximum area size for removed areas | |
[out] | Err | vector map where removed lines and centroids are written |
removed_area | pointer to where total size of removed area is stored or NULL |
Definition at line 41 of file remove_areas.c.
References Map_info::format, GV_FORMAT_NATIVE, Vect_remove_small_areas_ext(), and Vect_remove_small_areas_nat().
int Vect_remove_small_areas_ext | ( | struct Map_info * | Map, |
double | thresh, | ||
struct Map_info * | Err, | ||
double * | removed_area | ||
) |
Definition at line 52 of file remove_areas.c.
Referenced by Vect_remove_small_areas().
int Vect_remove_small_areas_nat | ( | struct Map_info * | Map, |
double | thresh, | ||
struct Map_info * | Err, | ||
double * | removed_area | ||
) |
Definition at line 203 of file remove_areas.c.
Referenced by Vect_remove_small_areas().