GRASS GIS 7 Programmer's Manual  7.9.dev(2021)-e5379bbd7
proj2.c File Reference

GIS Library - Projection support (internal subroutines) More...

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

Go to the source code of this file.

Functions

int G_projection_units (int n)
 Get projection units code (for internal use only) More...
 
const char * G_projection_name (int n)
 Get projection name. More...
 

Detailed Description

GIS Library - Projection support (internal subroutines)

(C) 2001-2011 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.

Author
Original author CERL

Definition in file proj2.c.

Function Documentation

◆ G_projection_name()

const char* G_projection_name ( int  n)

Get projection name.

Parameters
nprojection code
Returns
projection name
NULL on error

Definition at line 55 of file proj2.c.

References _, NULL, PROJECTION_LL, PROJECTION_OTHER, PROJECTION_UTM, and PROJECTION_XY.

Referenced by G_database_projection_name(), Rast__open_old(), and Vect_get_proj_name().

◆ G_projection_units()

int G_projection_units ( int  n)

Get projection units code (for internal use only)

Parameters
nprojection code

Supported units (see gis.h):

  • U_UNKNOWN (XY)
  • U_METERS (UTM)
  • U_FEET (SP)
  • U_USFEET (a few SP)
  • U_DEGREES (LL)
Returns
units code (see gis.h)
U_UNDEFINED if not defined

Definition at line 32 of file proj2.c.

References PROJECTION_LL, PROJECTION_UTM, PROJECTION_XY, U_DEGREES, U_METERS, U_UNDEFINED, and U_UNKNOWN.

Referenced by G_database_unit().