GRASS GIS 8 Programmer's Manual
8.2.2dev(2023)-3d2c704037
|
Vector library - Clean vector map (break lines) More...
Go to the source code of this file.
Functions | |
void | Vect_break_lines (struct Map_info *Map, int type, struct Map_info *Err) |
Break lines in vector map at each intersection. More... | |
int | Vect_break_lines_list (struct Map_info *Map, struct ilist *List_break, struct ilist *List_ref, int type, struct Map_info *Err) |
Break selected lines in vector map at each intersection. More... | |
int | Vect_check_line_breaks (struct Map_info *Map, int type, struct Map_info *Err) |
Check for and count intersecting lines, do not break. More... | |
int | Vect_check_line_breaks_list (struct Map_info *Map, struct ilist *List_break, struct ilist *List_ref, int type, struct Map_info *Err) |
Check for and count intersecting lines, do not break. More... | |
Vector library - Clean vector map (break lines)
(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 break_lines.c.
Break lines in vector map at each intersection.
For details see Vect_break_lines_list().
Map | input vector map | |
type | feature type | |
[out] | Err | vector map where points at intersections will be written or NULL |
Definition at line 33 of file break_lines.c.
int Vect_break_lines_list | ( | struct Map_info * | Map, |
struct ilist * | List_break, | ||
struct ilist * | List_ref, | ||
int | type, | ||
struct Map_info * | Err | ||
) |
Break selected lines in vector map at each intersection.
Breaks selected lines specified by type in vector map. Points at intersections may be optionally written to error map. Input vector map must be opened on level 2 for update at least on GV_BUILD_BASE.
The function also breaks lines forming collapsed loop, for example 0,0;1,0;0,0 is broken at 1,0.
If reference lines are given (List_ref) break only lines which intersect reference lines.
Map | input vector map | |
List_break | list of lines (NULL for all lines in vector map) | |
List_ref | list of reference lines or NULL | |
type | feature type | |
[out] | Err | vector map where points at intersections will be written or NULL |
Definition at line 62 of file break_lines.c.
Check for and count intersecting lines, do not break.
For details see Vect_check_line_breaks_list().
Map | input vector map | |
type | feature type | |
[out] | Err | vector map where points at intersections will be written or NULL |
Definition at line 80 of file break_lines.c.
int Vect_check_line_breaks_list | ( | struct Map_info * | Map, |
struct ilist * | List_break, | ||
struct ilist * | List_ref, | ||
int | type, | ||
struct Map_info * | Err | ||
) |
Check for and count intersecting lines, do not break.
If List_break is given, only lines in the list are checked for intersections.
If reference lines are given (List_ref) break only lines which intersect reference lines.
Map | input vector map | |
List_break | list of lines (NULL for all lines in vector map) | |
List_ref | list of reference lines or NULL | |
type | feature type | |
[out] | Err | vector map where points at intersections will be written or NULL |
Definition at line 102 of file break_lines.c.