GRASS Programmer's Manual 6.4.1(2011)
|
00001 00002 /********************************************************************** 00003 * G_projection() 00004 * 00005 * Returns the projection type of the currently set window. 00006 * (Note this is really the coordinate system, not the projection) 00007 * PROJECTION_XY 0 - x,y (Raw imagery) 00008 * PROJECTION_UTM 1 - UTM Universal Transverse Mercator 00009 * PROJECTION_SP 2 - State Plane (in feet) 00010 * PROJECTION_LL 3 - Latitude-Longitude 00011 * 00012 **********************************************************************/ 00013 00014 #include <grass/gis.h> 00015 00016 00033 int G_projection(void) 00034 { 00035 struct Cell_head window; 00036 00037 G_get_set_window(&window); 00038 return window.proj; 00039 }