#include <stdlib.h>
#include <grass/gis.h>
#include <grass/Vect.h>
Go to the source code of this file.
Functions | |
void | Vect_break_lines (struct Map_info *Map, int type, struct Map_info *Err, FILE *msgout) |
Break lines in vector map. |
void Vect_break_lines | ( | struct Map_info * | Map, | |
int | type, | |||
struct Map_info * | Err, | |||
FILE * | msgout | |||
) |
Break lines in vector map.
Breaks lines specified by type in vector map. Points at intersections may be optionaly written to error map. Input 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.
Map | input map where lines will be broken | |
type | type of line to be broken | |
Err | vector map where points at intersections will be written or NULL | |
msgout | file pointer where messages will be written or NULL |
Definition at line 37 of file break_lines.c.
References Vect_append_point(), Vect_delete_line(), Vect_destroy_line_struct(), Vect_destroy_list(), Vect_get_line_box(), Vect_get_line_nodes(), Vect_get_node_coor(), Vect_get_num_lines(), Vect_is_3d(), Vect_line_alive(), Vect_line_intersection(), Vect_line_prune(), Vect_new_cats_struct(), Vect_new_line_struct(), Vect_new_list(), Vect_read_line(), Vect_reset_line(), Vect_select_lines_by_box(), and Vect_write_line().