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