#include "gis.h"#include "glocale.h"#include <string.h>Include dependency graph for color_read.c:

Go to the source code of this file.
Functions | |
| int | G_read_colors (char *name, char *mapset, struct Colors *colors) |
| read map layer color table | |
| int | G_mark_colors_as_fp (struct Colors *colors) |
Sets a flag in the colors structure that indicates that these colors should only be looked up using floating-point raster data (not integer data). In particular if this flag is set, the routine G_get_colors_min_max() should return min=-255$^3$ and max=255$^3$. | |
| int G_mark_colors_as_fp | ( | struct Colors * | colors | ) |
Sets a flag in the colors structure that indicates that these colors should only be looked up using floating-point raster data (not integer data). In particular if this flag is set, the routine G_get_colors_min_max() should return min=-255$^3$ and max=255$^3$.
| colors |
Definition at line 393 of file color_read.c.
Referenced by G_make_rainbow_fp_colors(), and G_read_colors().
| int G_read_colors | ( | char * | name, | |
| char * | mapset, | |||
| struct Colors * | colors | |||
| ) |
read map layer color table
This routine reads the rules from the color file. If the input raster map is is a floating-point map it calls G_mark_colors_as_fp().
Definition at line 60 of file color_read.c.
References G__name_is_fully_qualified(), G_get_fp_range_min_max(), G_get_range_min_max(), G_init_colors(), G_is_c_null_value(), G_is_d_null_value(), G_make_rainbow_colors(), G_make_rainbow_fp_colors(), G_mapset(), G_mark_colors_as_fp(), G_raster_map_is_fp(), G_read_fp_range(), G_read_range(), and G_warning().
1.4.7