GRASS Programmer's Manual
6.5.svn(2014)-r66266
|
Vedit library - split, break, connect lines. More...
#include <math.h>
#include <grass/vedit.h>
Go to the source code of this file.
Functions | |
int | Vedit_split_lines (struct Map_info *Map, struct ilist *List, struct line_pnts *coord, double thresh, struct ilist *List_updated) |
Split selected lines on given position. More... | |
int | Vedit_connect_lines (struct Map_info *Map, struct ilist *List, double thresh) |
Connect lines in given threshold. More... | |
Vedit library - split, break, connect lines.
(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 break.c.
int Vedit_connect_lines | ( | struct Map_info * | Map, |
struct ilist * | List, | ||
double | thresh | ||
) |
Connect lines in given threshold.
If two lines are selected and thresh is -1, no limit is applied.
Map | pointer to Map_info |
List | list of selected lines |
thresh | threshold value |
Definition at line 155 of file break.c.
References G_debug(), main::GV_LINES, Vect_destroy_list(), Vect_find_line_list(), Vect_get_line_nodes(), Vect_get_node_coor(), Vect_line_alive(), Vect_list_append(), Vect_new_list(), Vect_reset_list(), and y.
Referenced by wxdigit.IVDigit::ConnectLine().
int Vedit_split_lines | ( | struct Map_info * | Map, |
struct ilist * | List, | ||
struct line_pnts * | coord, | ||
double | thresh, | ||
struct ilist * | List_updated | ||
) |
Split selected lines on given position.
Map | pointer to Map_info | |
List | list of selected lines | |
coord | points location | |
[out] | List_updated | list of rewritten features (or NULL) |
Definition at line 31 of file break.c.
References G_debug(), main::GV_LINES, l, NULL, dialogs::type, Vect_append_point(), Vect_destroy_cats_struct(), Vect_destroy_line_struct(), Vect_destroy_list(), Vect_line_alive(), Vect_line_distance(), Vect_line_length(), Vect_list_append(), Vect_new_cats_struct(), Vect_new_line_struct(), Vect_new_list(), Vect_read_line(), Vect_reset_line(), Vect_rewrite_line(), Vect_write_line(), and y.
Referenced by wxdigit.IVDigit::SplitLine().