GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
get_projinfo.c File Reference

GIS Library - Get projection info. More...

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

Go to the source code of this file.

Macros

#define PERMANENT   "PERMANENT"
 

Functions

struct Key_Value * G_get_projunits (void)
 Gets unit information for location. More...
 
struct Key_Value * G_get_projinfo (void)
 Gets projection information for location. More...
 

Detailed Description

GIS Library - Get projection info.

(C) 1999-2008 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 get_projinfo.c.

Macro Definition Documentation

#define PERMANENT   "PERMANENT"

Definition at line 18 of file get_projinfo.c.

Referenced by G_get_ellipsoid_parameters(), G_get_projinfo(), and G_get_projunits().

Function Documentation

struct Key_Value* G_get_projinfo ( void  )

Gets projection information for location.

Returns
pointer to Key_Value structure with key/value pairs

Definition at line 52 of file get_projinfo.c.

References G__file_name(), G_location(), G_read_key_value_file(), G_warning(), NULL, PERMANENT, and stat.

Referenced by G_database_datum_name(), GPJ_get_datum_params(), and GPJ_get_ellipsoid_params().

struct Key_Value* G_get_projunits ( void  )

Gets unit information for location.

Returns
pointer to Key_Value structure with key/value pairs

Definition at line 25 of file get_projinfo.c.

References G__file_name(), G_location(), G_read_key_value_file(), G_warning(), NULL, PERMANENT, and stat.