GRASS 8 Programmer's Manual 8.6.0dev(2026)-55de52a352
Loading...
Searching...
No Matches
copy.c File Reference

Vedit library - copy primitives. More...

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

Go to the source code of this file.

Functions

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

Detailed Description

Vedit library - copy primitives.

SPDX-FileCopyrightText: 2007-2008 GRASS Development Team SPDX-License-Identifier: GPL-2.0-or-later

Author
Jachym Cepicky <jachym.cepicky gmail.com>
Martin Landa <landa.martin gmail.com>

Definition in file vector/vedit/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.

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

Definition at line 25 of file vector/vedit/copy.c.

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