grass  7.8.6
About: GRASS (Geographic Resources Analysis Support System) is a raster- and vector-based GIS, image processing system, graphics production system and spatial modeling system.
  Fossies Dox: grass-7.8.6.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

merge.c File Reference

Vedit library - merge lines. More...

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

Go to the source code of this file.


static int merge_lines (struct line_pnts *Points1, struct line_cats *Cats1, struct line_pnts *Points2, struct line_cats *Cats2, double thresh, struct line_pnts **Points)
 Merge two given lines a, b. More...
int Vedit_merge_lines (struct Map_info *Map, struct ilist *List)
 Merge lines/boundaries. More...

Detailed Description

Vedit library - merge lines.

(C) 2006-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.

Jachym Cepicky <jachym.cepicky>
Martin Landa <landa.martin>

Definition in file merge.c.

Function Documentation

◆ merge_lines()

static int merge_lines ( struct line_pnts Points1,
struct line_cats Cats1,
struct line_pnts Points2,
struct line_cats Cats2,
double  thresh,
struct line_pnts **  Points 

Merge two given lines a, b.

a : Points1/Cats1 b : Points2/Cats2 merged line : Points/Cats

Points1,Cats1first line
Points2,Cats2second line
threshthreshold value
[out]Pointsresult line
1 on success
0 on error

Definition at line 207 of file merge.c.

References line_cats::cat, Cats2, line_cats::field, G_debug(), GV_BACKWARD, GV_FORWARD, line_cats::n_cats, line_pnts::n_points, Points, ps, Vect_append_points(), Vect_cat_set(), Vect_line_prune(), and Vedit_get_min_distance().

Referenced by Vedit_merge_lines().

◆ Vedit_merge_lines()

int Vedit_merge_lines ( struct Map_info Map,
struct ilist List