Functions

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.

Functions

int Vedit_merge_lines (struct Map_info *Map, struct ilist *List)
 Merge lines/boundaries.

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.

Author:
Jachym Cepicky <jachym.cepicky gmail.com>
Martin Landa <landa.martin gmail.com>
Date:
2006-2008

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.

Parameters:
Mapvector map
Listlist of selected lines
Returns:
number of merged lines
-1 on error

Definition at line 50 of file merge.c.

References 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().