21 static const char *_band_file =
"band_reference";
55 char **filename,
char **band_reference)
61 G_debug(1,
"Reading band reference file for raster map <%s@%s>",
69 G_debug(1,
"Unable to read band identifier file for <%s@%s>",
95 const char *filename,
const char *band_reference)
void void void void G_fatal_error(const char *,...) __attribute__((format(printf
int G__read_band_reference(FILE *, struct Key_Value **)
Read band reference identifier from file (internal use only).
int Rast_has_band_reference(const char *name, const char *mapset)
Check if band reference for raster map exists.
int G__write_band_reference(FILE *, const char *, const char *)
Write band reference identifier to file (internal use only).
int Rast_read_band_reference(const char *name, const char *mapset, char **filename, char **band_reference)
Read raster map band reference identifier.
int G_remove_misc(const char *, const char *, const char *)
Remove a database misc file.
int Rast_write_band_reference(const char *name, const char *filename, const char *band_reference)
Write raster map band reference identifier.
FILE * G_fopen_old_misc(const char *, const char *, const char *, const char *)
open a database file for reading
const char * G_find_file2_misc(const char *, const char *, const char *, const char *)
Searches for a file from the mapset search list or in a specified mapset. (look but don't touch) ...
FILE * G_fopen_new_misc(const char *, const char *, const char *)
open a new database file
char * G_store(const char *)
Copy string to allocated memory.
int Rast_remove_band_reference(const char *name)
Remove band reference from raster map.
int G_debug(int, const char *,...) __attribute__((format(printf
void G_free_key_value(struct Key_Value *)
Free allocated Key_Value structure.
const char * G_find_key_value(const char *, const struct Key_Value *)
Find given key (case sensitive)