GRASS Programmer's Manual
6.4.1(2011)
|
00001 00017 #include <grass/gis.h> 00018 00019 00035 int G_limit_east(double *east, int proj) 00036 { 00037 return 1; 00038 } 00039 00040 00056 int G_limit_west(double *west, int proj) 00057 { 00058 return 1; 00059 } 00060 00061 00075 int G_limit_north(double *north, int proj) 00076 { 00077 if (proj == PROJECTION_LL) { 00078 if (*north > 90.0) { 00079 *north = 90.0; 00080 return 0; 00081 } 00082 if (*north < -90) { 00083 *north = -90; 00084 return 0; 00085 } 00086 } 00087 00088 return 1; 00089 } 00090 00091 00105 int G_limit_south(double *south, int proj) 00106 { 00107 if (proj == PROJECTION_LL) { 00108 if (*south > 90.0) { 00109 *south = 90.0; 00110 return 0; 00111 } 00112 if (*south < -90) { 00113 *south = -90; 00114 return 0; 00115 } 00116 } 00117 00118 return 1; 00119 }