location.c File Reference

#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <grass/gis.h>
#include <grass/glocale.h>

Include dependency graph for location.c:

Go to the source code of this file.

Functions

char * G_location_path ()
 current location directory
char * G_location ()
 current location name
char * G__location_path ()


Function Documentation

char* G__location_path (  ) 

Definition at line 75 of file location.c.

References G_gisdbase(), G_location(), G_malloc(), and name.

Referenced by G__file_name(), G_is_reclassed_to(), G_location_path(), and G_put_reclass().

char* G_location (  ) 

current location name

Returns the name of the current database location. This routine should be used by modules that need to display the current location to the user. See Locations for an explanation of locations.

Parameters:
void 
Returns:
char *

Definition at line 69 of file location.c.

References G_getenv().

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

char* G_location_path (  ) 

current location directory

Returns the full UNIX path name of the current database location. For example, if the user is working in location spearfish in the /usr/grass5/data database directory, this routine will return a string which looks like /home/user/grassdata/spearfish.

Parameters:
void 
Returns:
char *

Definition at line 41 of file location.c.

References G__location_path(), and G_fatal_error().

Referenced by G_available_mapsets(), and G_gisinit().


Generated on Sun Apr 6 17:32:22 2008 for GRASS by  doxygen 1.5.5