GRASS GIS 8 Programmer's Manual  8.2.2dev(2023)-5c00b4e944
vector/Vlib/color_remove.c File Reference

Vector Library - remove color table of vector map. More...

#include <string.h>
#include <grass/gis.h>
#include <grass/vector.h>
Include dependency graph for vector/Vlib/color_remove.c:

Go to the source code of this file.


int Vect_remove_colors (const char *name, const char *mapset)
 Remove color table of raster map. More...

Detailed Description

Vector Library - remove color table of vector map.

(C) 2011 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.

Martin Landa <landa.martin>

Definition in file vector/Vlib/color_remove.c.

Function Documentation

◆ Vect_remove_colors()

int Vect_remove_colors ( const char *  name,
const char *  mapset 

Remove color table of raster map.

namename of raster map
mapsetname of mapset
-1 on error
0 color table not found
1 on success

Definition at line 29 of file vector/Vlib/color_remove.c.

References G_mapset(), G_name_is_fully_qualified(), G_remove(), GMAPSET_MAX, GNAME_MAX, GPATH_MAX, GV_COLR2_DIRECTORY, GV_COLR_ELEMENT, GV_DIRECTORY, and name.