13 #include <grass/gis.h> 14 #include <grass/glocale.h> 16 #define PERMANENT "PERMANENT" 31 struct Key_Value *in_units_keys;
35 if (access(path, 0) != 0) {
37 G_warning(_(
"<%s> file not found for location <%s>"),
60 struct Key_Value *in_proj_keys;
64 if (access(path, 0) != 0) {
66 G_warning(_(
"<%s> file not found for location <%s>"),
87 struct Key_Value *in_epsg_keys;
91 if (access(path, 0) != 0) {
93 G_debug(1,
"<%s> file not found for location <%s>",
const char * G_location(void)
Get current location name.
struct Key_Value * G_get_projunits(void)
Gets units information for location.
struct Key_Value * G_read_key_value_file(const char *file)
Read key/values pairs from file.
char * G_file_name(char *path, const char *element, const char *name, const char *mapset)
Builds full path names to GIS data files.
int G_debug(int level, const char *msg,...)
Print debugging message.
struct Key_Value * G_get_projinfo(void)
Gets projection information for location.
struct Key_Value * G_get_projepsg(void)
Gets EPSG information for the current location.
int G_projection(void)
Query cartographic projection.
void G_warning(const char *msg,...)
Print a warning message to stderr.