#include <string.h>
#include <grass/gis.h>
#include <grass/glocale.h>
Go to the source code of this file.
Functions | |
char * | G_database_unit_name (int plural) |
database units | |
char * | G_database_projection_name () |
query cartographic projection | |
double | G_database_units_to_meters_factor () |
conversion to meters | |
char * | G_database_datum_name () |
get datum name for database | |
char * | G_database_ellipse_name () |
char* G_database_datum_name | ( | ) |
get datum name for database
Returns a pointer to the name of the map datum of the current database. If there is no map datum explicitely associated with the acutal database, the standard map datum WGS84 is returned, on error a NULL pointer is returned.
Definition at line 140 of file proj3.c.
References G_free_key_value(), G_get_datumparams_from_projinfo(), G_get_projinfo(), name, and NULL.
char* G_database_ellipse_name | ( | ) |
char* G_database_projection_name | ( | ) |
query cartographic projection
Returns a pointer to a string which is a printable name for projection code proj (as returned by G_projection). Returns NULL if proj is not a valid projection.
proj |
Definition at line 53 of file proj3.c.
References G__projection_name(), G_projection(), and name.
char* G_database_unit_name | ( | int | plural | ) |
database units
Returns a string describing the database grid units. It returns a plural form (eg. feet) if plural is true. Otherwise it returns a singular form (eg. foot).
plural |
Definition at line 21 of file proj3.c.
References G__projection_units(), G__unit_name(), G_projection(), and name.
Referenced by G_database_units_to_meters_factor().
double G_database_units_to_meters_factor | ( | ) |
conversion to meters
Returns a factor which converts the grid unit to meters (by multiplication). If the database is not metric (eg. imagery) then 0.0 is returned.
void |
Definition at line 84 of file proj3.c.
References G_database_unit_name(), and NULL.
Referenced by G_begin_cell_area_calculations(), G_begin_distance_calculations(), and G_begin_polygon_area_calculations().