GRASS GIS 7 Programmer's Manual
7.8.5(2020)-exported
|
Go to the documentation of this file.
14 #include <grass/gis.h>
15 #include <grass/glocale.h>
17 #define PERMANENT "PERMANENT"
32 struct Key_Value *in_units_keys;
36 if (access(
path, 0) != 0) {
38 G_warning(_(
"<%s> file not found for location <%s>"),
61 struct Key_Value *in_proj_keys, *in_epsg_keys;
65 if (access(
path, 0) != 0) {
67 G_warning(_(
"<%s> file not found for location <%s>"),
79 sprintf(buf,
"EPSG:%s", epsgstr);
98 struct Key_Value *in_epsg_keys;
102 if (access(
path, 0) != 0) {
104 G_debug(1,
"<%s> file not found for location <%s>",
const char * G_find_key_value(const char *key, const struct Key_Value *kv)
Find given key (case sensitive)
void G_free_key_value(struct Key_Value *kv)
Free allocated Key_Value structure.
struct Key_Value * G_get_projunits(void)
Gets units information for location.
char * G_file_name(char *path, const char *element, const char *name, const char *mapset)
Builds full path names to GIS data files.
struct Key_Value * G_get_projinfo(void)
Gets projection information for location.
const char * G_location(void)
Get current location name.
int G_projection(void)
Query cartographic projection.
struct Key_Value * G_get_projepsg(void)
Gets EPSG information for the current location.
int G_debug(int level, const char *msg,...)
Print debugging message.
struct Key_Value * G_read_key_value_file(const char *file)
Read key/values pairs from file.
void G_warning(const char *msg,...)
Print a warning message to stderr.
void G_set_key_value(const char *key, const char *value, struct Key_Value *kv)
Set value for given key.