GRASS GIS 7 Programmer's Manual  7.5.svn(2018)-r73120
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
proj1.c File Reference

GIS Library - Projection support (window related) More...

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

Go to the source code of this file.


int G_projection (void)
 Query cartographic projection. More...

Detailed Description

GIS Library - Projection support (window related)

(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.

Original author CERL

Definition in file proj1.c.

Function Documentation

int G_projection ( void  )

Query cartographic projection.

This routine returns a code indicating the projection for the active region. The current values are (see gis.h)

  • PROJECTION_XY 0 - x,y (Raw imagery)
  • PROJECTION_UTM 1 - UTM Universal Transverse Mercator
  • PROJECTION_SP 2 - State Plane (in feet) - not used, removed
  • PROJECTION_LL 3 - Latitude-Longitude
  • PROJECTION_OTHER 99 - others

Others may be added in the future.

projection code (see above)

Definition at line 32 of file proj1.c.

References G_get_set_window(), and Cell_head::proj.

Referenced by G_begin_distance_calculations(), G_begin_polygon_area_calculations(), G_database_projection_name(), G_database_unit(), G_get_3dview(), G_get_projepsg(), G_get_projinfo(), G_get_projunits(), G_shortest_way(), Rast__check_for_auto_masking(), Vect__open_old(), Vect_net_build_graph(), Vect_net_ttb_build_graph(), Vect_read_ascii(), and Vect_set_constraint_region().