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)  

cats.c File Reference

Vedit library - category manipulation. More...

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

Go to the source code of this file.


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.

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

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

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

Definition at line 30 of file cats.c.

References _, G_warning(), line(), max, cat_list::min, cat_list::n_ranges, ilist::n_values, Points, type, ilist::value, Vect_cat_set(), Vect_destroy_cats_struct(), Vect_destroy_line_struct(), Vect_field_cat_del(), Vect_line_alive(), Vect_new_cats_struct(), Vect_new_line_struct(), Vect_read_line(), and Vect_rewrite_line().