GRASS GIS 7 Programmer's Manual
7.9.dev(2021)-e5379bbd7
|
Vector Library - read color table of vector map. More...
#include <string.h>
#include <grass/gis.h>
#include <grass/raster.h>
#include <grass/vector.h>
#include <grass/glocale.h>
Go to the source code of this file.
Functions | |
int | Vect_read_colors (const char *name, const char *mapset, struct Colors *colors) |
Read color table of vector map. More... | |
Vector Library - read 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.
Definition in file vector/Vlib/color_read.c.
int Vect_read_colors | ( | const char * | name, |
const char * | mapset, | ||
struct Colors * | colors | ||
) |
Read color table of vector map.
The color table for the vector map name in the specified mapset is read into the colors structure.
Note: If a secondary color file for map name name exists in the current mapset, that color file is read. This allows the user to define their own color lookup tables for vector maps found in other mapsets.
Warning message is printed if the color file is missing or invalid.
name | vector map name | |
mapset | mapset name ("" for search path) | |
[out] | colors | pointer to Colors structure (can be NULL) |
Definition at line 42 of file vector/Vlib/color_read.c.