|
ocssw
1.0
|
00001 /* 00002 0 = Geographic 00003 1 = Universal Transverse Mercator (UTM) 00004 2 = State Plane Coordinates 00005 3 = Albers Conical Equal Area 00006 4 = Lambert Conformal Conic 00007 5 = Mercator 00008 6 = Polar Stereographic 00009 7 = Polyconic 00010 8 = Equidistant Conic 00011 9 = Transverse Mercator 00012 10 = Stereographic 00013 11 = Lambert Azimuthal Equal Area 00014 12 = Azimuthal Equidistant 00015 13 = Gnomonic 00016 14 = Orthographic 00017 15 = General Vertical Near-Side Perspective 00018 16 = Sinusiodal 00019 17 = Equirectangular 00020 18 = Miller Cylindrical 00021 19 = Van der Grinten 00022 20 = (Hotine) Oblique Mercator 00023 21 = Robinson 00024 22 = Space Oblique Mercator (SOM) 00025 23 = Alaska Conformal 00026 24 = Interrupted Goode Homolosine 00027 25 = Mollweide 00028 26 = Interrupted Mollweide 00029 27 = Hammer 00030 28 = Wagner IV 00031 29 = Wagner VII 00032 30 = Oblated Equal Area 00033 99 = User defined 00034 */ 00035 00036 #define GEO 0 00037 #define UTM 1 00038 #define SPCS 2 00039 #define ALBERS 3 00040 #define LAMCC 4 00041 #define MERCAT 5 00042 #define PS 6 00043 #define POLYC 7 00044 #define EQUIDC 8 00045 #define TM 9 00046 #define STEREO 10 00047 #define LAMAZ 11 00048 #define AZMEQD 12 00049 #define GNOMON 13 00050 #define ORTHO 14 00051 #define GVNSP 15 00052 #define SNSOID 16 00053 #define EQRECT 17 00054 #define MILLER 18 00055 #define VGRINT 19 00056 #define HOM 20 00057 #define ROBIN 21 00058 #define SOM 22 00059 #define ALASKA 23 00060 #define GOOD 24 00061 #define MOLL 25 00062 #define IMOLL 26 00063 #define HAMMER 27 00064 #define WAGIV 28 00065 #define WAGVII 29 00066 #define OBEQA 30 00067 #define USDEF 99 00068 00069 #define IN_BREAK -2 00070 #define COEFCT 15 /* projection coefficient count */ 00071 #define PROJCT 31 /* projection count */ 00072 #define DATMCT 20 /* datum count */ 00073 00074 #define MAXPROJ 30 /* Maximum projection number */ 00075 #define MAXUNIT 5 /* Maximum unit code number */ 00076 #define GEO_TERM 0 /* Array index for print-to-term flag */ 00077 #define GEO_FILE 1 /* Array index for print-to-file flag */ 00078 #define GEO_TRUE 1 /* True value for geometric true/false flags */ 00079 #define GEO_FALSE -1 /* False val for geometric true/false flags */ 00080 00081 #ifndef PI 00082 #define PI 3.14159265358979323846 00083 #endif 00084 #define HALF_PI 1.57079632679489661923 00085 #define TWO_PI 6.28318530717958647692 00086 #define EPSLN 1.0e-10 00087 #define R2D 57.2957795131 00088 /* 00089 #define D2R 0.0174532925199 00090 */ 00091 #define D2R 1.745329251994328e-2 00092 #define S2R 4.848136811095359e-6 00093 00094 #define OK 0 00095 #define ERROR -1 00096 00097 /* Misc macros 00098 -----------*/ 00099 #define SQUARE(x) x * x /* x**2 */ 00100 #define CUBE(x) x * x * x /* x**3 */ 00101 #define QUAD(x) x * x * x * x /* x**4 */ 00102 00103 #define GMAX(A, B) ((A) > (B) ? (A) : (B)) /* assign maximum of a and b */ 00104 #define GMIN(A, B) ((A) < (B) ? (A) : (B)) /* assign minimum of a and b */ 00105 00106 #define IMOD(A, B) (A) - (((A) / (B)) * (B)) /* Integer mod function */ 00107 00108 #define sincos SinCos
1.7.6.1