GRASS GIS 7 Programmer's Manual  7.5.svn(2017)-r71769
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
raster/color_remove.c File Reference

Raster Library - remove color table of raster map. More...

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

Go to the source code of this file.

Functions

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

Detailed Description

Raster Library - remove color table of raster map.

(C) 2007 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
Glynn Clements

Definition in file raster/color_remove.c.

Function Documentation

int Rast_remove_colors ( const char *  name,
const char *  mapset 
)

Remove color table of raster map.

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

Definition at line 28 of file raster/color_remove.c.

References G_mapset(), G_name_is_fully_qualified(), G_remove(), GMAPSET_MAX, and GNAME_MAX.