GRASS GIS 8 Programmer's Manual  8.2.2dev(2023)-3d2c704037
vector/vedit/cats.c File Reference

Vedit library - category manipulation. More...

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

Go to the source code of this file.

Functions

int Vedit_modify_cats (struct Map_info *Map, struct ilist *List, int layer, int del, struct cat_list *Clist)
 Add / remove categories. More...
 

Detailed Description

Vedit library - category manipulation.

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

Definition in file vector/vedit/cats.c.

Function Documentation

◆ Vedit_modify_cats()

int Vedit_modify_cats ( struct Map_info Map,
struct ilist List,
int  layer,
int  del,
struct cat_list Clist 
)

Add / remove categories.

Parameters
Mappointer to Map_info
Listlist of selected primitives
layerlayer number
delaction (non-zero for delete otherwise add)
Clistlist of category numbers
Returns
number of modified primitives
-1 on error

Definition at line 30 of file vector/vedit/cats.c.