GRASS GIS 7 Programmer's Manual
7.9.dev(2021)-e5379bbd7
|
Raster Library - Band reference managenent. More...
Go to the source code of this file.
Functions | |
int | Rast_has_band_reference (const char *name, const char *mapset) |
Check if band reference for raster map exists. More... | |
int | Rast_read_band_reference (const char *name, const char *mapset, char **filename, char **band_reference) |
Read raster map band reference identifier. More... | |
int | Rast_write_band_reference (const char *name, const char *filename, const char *band_reference) |
Write raster map band reference identifier. More... | |
int | Rast_remove_band_reference (const char *name) |
Remove band reference from raster map. More... | |
Raster Library - Band reference managenent.
(C) 2019 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 raster/band_reference.c.
int Rast_has_band_reference | ( | const char * | name, |
const char * | mapset | ||
) |
Check if band reference for raster map exists.
name | map name |
mapset | mapset name |
Definition at line 32 of file raster/band_reference.c.
References G_find_file2_misc().
int Rast_read_band_reference | ( | const char * | name, |
const char * | mapset, | ||
char ** | filename, | ||
char ** | band_reference | ||
) |
Read raster map band reference identifier.
Note that output arguments should be freed by the caller using G_free().
name | map name | |
mapset | mapset name | |
[out] | filename | filename JSON reference |
[out] | band_reference | band reference identifier |
Definition at line 54 of file raster/band_reference.c.
int Rast_remove_band_reference | ( | const char * | name | ) |
Remove band reference from raster map.
Only band reference files in current mapset can be removed.
name | map name |
Definition at line 123 of file raster/band_reference.c.
References G_remove_misc().
int Rast_write_band_reference | ( | const char * | name, |
const char * | filename, | ||
const char * | band_reference | ||
) |
Write raster map band reference identifier.
name | map name |
filename | filename JSON reference |
band_reference | band reference identifier |
Definition at line 94 of file raster/band_reference.c.