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)  

copy.c File Reference

Vedit library - copy primitives. More...

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

Go to the source code of this file.


int Vedit_copy_lines (struct Map_info *Map, struct Map_info *FromMap, struct ilist *List)
 Copy selected primitives. More...

Detailed Description

Vedit library - copy primitives.

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

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

Definition in file copy.c.

Function Documentation

◆ Vedit_copy_lines()

int Vedit_copy_lines ( struct Map_info Map,
struct Map_info FromMap,
struct ilist List 

Copy selected primitives.

Mappointer to Map_info copy to
FromMapvector map copy from (if not given use Map)
Listlist of selected primitives (to be copied)
number of copied primitives
-1 on error

Definition at line 27 of file copy.c.

References G_debug(), line(), ilist::n_values, Points, type, ilist::value, Vect_destroy_cats_struct(), Vect_destroy_line_struct(), Vect_line_alive(), Vect_new_cats_struct(), Vect_new_line_struct(), Vect_read_line(), and Vect_write_line().