GRASS 8 Programmer's Manual 8.6.0dev(2026)-55de52a352
Loading...
Searching...
No Matches
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)
 
const charG_projection_name (int n)
 Get projection name.
 

Detailed Description

GIS Library - Projection support (internal subroutines)

SPDX-FileCopyrightText: 2001-2011 GRASS Development Team SPDX-License-Identifier: GPL-2.0-or-later

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 53 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 30 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().