GRASS GIS 7 Programmer's Manual
7.9.dev(2021)-e5379bbd7
|
Vedit library - snapping. More...
#include <grass/vedit.h>
Go to the source code of this file.
Functions | |
int | Vedit_snap_point (struct Map_info *Map, int line, double *x, double *y, double *z, double thresh, int vertex) |
Snap given point to the nearest primitive. More... | |
int | Vedit_snap_line (struct Map_info *Map, struct Map_info **BgMap, int nbgmaps, int line, struct line_pnts *Points, double thresh, int to_vertex) |
Snap selected primitive to its nearest primitive. More... | |
int | Vedit_snap_lines (struct Map_info *Map, struct Map_info **BgMap, int nbgmaps, struct ilist *List, double thresh, int to_vertex) |
Snap lines/boundaries. More... | |
Vedit library - snapping.
(C) 2007-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.
Definition in file vedit/snap.c.
int Vedit_snap_line | ( | struct Map_info * | Map, |
struct Map_info ** | BgMap, | ||
int | nbgmaps, | ||
int | line, | ||
struct line_pnts * | Points, | ||
double | thresh, | ||
int | to_vertex | ||
) |
Snap selected primitive to its nearest primitive.
Map | pointer to Map_info |
BgMap,nbgmaps | list of background maps used for snapping |
line | line id to be snapped (if already written, otherwise -1) |
Points | line geometry |
layer | layer number |
thresh | threshold value used for snapping (>0) |
to_vertex | allow snapping also to vertex |
Definition at line 99 of file vedit/snap.c.
int Vedit_snap_lines | ( | struct Map_info * | Map, |
struct Map_info ** | BgMap, | ||
int | nbgmaps, | ||
struct ilist * | List, | ||
double | thresh, | ||
int | to_vertex | ||
) |
Snap lines/boundaries.
Map | pointer to Map_info |
BgMap,nbgmaps | list of background maps used for snapping |
List | list of lines to be snapped |
layer | layer number |
thresh | threshold value used for snapping (>0) |
to_vertex | allow snapping also to vertex |
Definition at line 175 of file vedit/snap.c.
int Vedit_snap_point | ( | struct Map_info * | Map, |
int | line, | ||
double * | x, | ||
double * | y, | ||
double * | z, | ||
double | thresh, | ||
int | vertex | ||
) |
Snap given point to the nearest primitive.
Map | pointer to Map_info |
line | line to be excluded (point on line) |
x,y,z | point on line to be snapped |
thresh | snapping threshold (>0) |
vertex | snap also to vertex (non-zero) |
Definition at line 28 of file vedit/snap.c.