GRASS GIS 7 Programmer's Manual  7.9.dev(2021)-e384be2c9
gis/band_reference.c File Reference

GIS Library - Band reference management (internal use only) More...

#include <grass/gis.h>
#include <grass/glocale.h>
Include dependency graph for gis/band_reference.c:

Go to the source code of this file.

Functions

int G__read_band_reference (FILE *fd, struct Key_Value **key_val)
 Read band reference identifier from file (internal use only). More...
 
int G__write_band_reference (FILE *fd, const char *filename, const char *band_reference)
 Write band reference identifier to file (internal use only). More...
 

Detailed Description

GIS Library - Band reference management (internal use only)

(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.

Author
Martin Landa (with financial support by mundialis, Bonn, for openEO EU H2020 grant 776242, https://openeo.org)

Definition in file gis/band_reference.c.

Function Documentation

◆ G__read_band_reference()

int G__read_band_reference ( FILE *  fd,
struct Key_Value **  key_val 
)

Read band reference identifier from file (internal use only).

Parameters
fdfile descriptor
[out]key_valkey/value pairs (filename, identifier)
Returns
1 on success
-1 error - unable fetch key/value pairs
-2 error - invalid band reference

Definition at line 28 of file gis/band_reference.c.

◆ G__write_band_reference()

int G__write_band_reference ( FILE *  fd,
const char *  filename,
const char *  band_reference 
)

Write band reference identifier to file (internal use only).

Parameters
fdfile descriptor
filenamefilename JSON reference
band_referenceband reference identifier
Returns
1 on success
-1 error - unable to write key/value pairs into fileo

Definition at line 60 of file gis/band_reference.c.