GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
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.


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

int Vedit_merge_lines ( struct Map_info *  Map,
struct ilist *  List 

Merge lines/boundaries.

At least two lines need to be given.

Mappointer to Map_info
Listlist of selected lines
number of merged lines
-1 on error

Definition at line 47 of file merge.c.

References Cats2, G_debug(), main::GV_LINES, NULL, Vect_append_point(), Vect_delete_line(), Vect_destroy_cats_struct(), Vect_destroy_line_struct(), Vect_get_num_lines(), Vect_line_alive(), Vect_list_append(), Vect_new_cats_struct(), Vect_new_line_struct(), Vect_new_list(), Vect_read_line(), Vect_reset_line(), Vect_reset_list(), Vect_rewrite_line(), Vect_select_lines_by_polygon(), and Vect_val_in_list().

Referenced by wxdigit.IVDigit::MergeLine().