1234567891011121314151617181920212223242526272829303132333435363738 |
- /*!
- \file gis/proj1.c
- *
- * \brief GIS Library - Projection support (window related)
- *
- * (C) 2001-2010 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
- */
- #include <grass/gis.h>
- /*!
- \brief Query cartographic projection
-
- This routine returns a code indicating the projection for the active
- region. The current values are:
- - PROJECTION_XY 0 - x,y (Raw imagery)
- - PROJECTION_UTM 1 - UTM Universal Transverse Mercator
- - PROJECTION_SP 2 - State Plane (in feet)
- - PROJECTION_LL 3 - Latitude-Longitude
- Others may be added in the future.
- \return projection code (see above)
- */
- int G_projection(void)
- {
- struct Cell_head window;
- G_get_set_window(&window);
- return window.proj;
- }
|