GRASS GIS 8 Programmer's Manual  8.5.0dev(2024)-d12eea5925
break.c File Reference

Vedit library - split, break, connect lines. More...

#include <math.h>
#include <grass/vedit.h>
Include dependency graph for break.c:

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...
 
int connect_lines (struct Map_info *Map, int first, int line_from, int line_to, double thresh, struct ilist *List UNUSED)
 

Detailed Description

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.

Author
Martin Landa <landa.martin gmail.com>

Definition in file break.c.

Function Documentation

◆ connect_lines()

int connect_lines ( struct Map_info Map,
int  first,
int  line_from,
int  line_to,
double  thresh,
struct ilist *List  UNUSED 
)

Definition at line 227 of file break.c.

◆ Vedit_connect_lines()

int Vedit_connect_lines ( struct Map_info Map,
struct ilist List,
double  thresh 
)

Connect lines in given threshold.

\ \
id1 \ -> \
\
id2 --------- -----+---

If two lines are selected and thresh is -1, no limit is applied.

Parameters
Mappointer to Map_info
Listlist of selected lines
threshthreshold value
Returns
number of modified lines
-1 on error

Definition at line 158 of file break.c.

◆ Vedit_split_lines()

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.

Parameters
Mappointer to Map_info
Listlist of selected lines
coordpoints location
threshthreshold
[out]List_updatedlist of rewritten features (or NULL)
Returns
number of modified lines
-1 on error

Definition at line 32 of file break.c.

References l.