22 DllMain(HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved) {
23 switch (ul_reason_for_call) {
24 case DLL_PROCESS_ATTACH :
28 case DLL_PROCESS_DETACH :
32 case DLL_THREAD_ATTACH :
33 case DLL_THREAD_DETACH :
50 {
"Default Ellipsoid (WGS 1984) ",
"00", 6378137.0 ,298.257223563 },
51 {
"Airy 1830 ",
"AA", 6377563.396 ,299.3249646 },
52 {
"Australian National ",
"AN", 6378160.0 ,298.25 },
53 {
"Bessel 1841 ",
"BR", 6377397.155 ,299.1528128 },
54 {
"Bessel 1841 (Namibia) ",
"BN", 6377483.865 ,299.1528128 },
55 {
"Clarke 1866 ",
"CC", 6378206.4 ,294.9786982 },
56 {
"Clarke 1880 ",
"CD", 6378249.145 ,293.465 },
57 {
"Everest (Brunei, E. Malaysia) ",
"EB", 6377298.556 ,300.8017 },
58 {
"Everest 1830 ",
"EA", 6377276.345 ,300.8017 },
59 {
"Everest 1956 (India and Nepal) ",
"EC", 6377301.243 ,300.8017 },
60 {
"Everest (Pakistan) ",
"EF", 6377309.613 ,300.8017 },
61 {
"Everest 1948 (W. Malaysia and Singapore)",
"EE", 6377304.063 ,300.8017 },
62 {
"Everest 1969 (W. Malaysia) ",
"ED", 6377295.664 ,300.8017 },
63 {
"Geodetic Reference System 1980 ",
"RF", 6378137.0 ,298.257222101 },
64 {
"Helmert 1906 ",
"HE", 6378200.0 ,298.3 },
65 {
"Hough 1960 ",
"HO", 6378270.0 ,297.0 },
66 {
"Indonesian 1974 ",
"ID", 6378160.0 ,298.247 },
67 {
"International 1924 ",
"IN", 6378388.0 ,297.0 },
68 {
"Krassovsky 1940 ",
"KA", 6378245.0 ,298.3 },
69 {
"Modified Airy ",
"AM", 6377340.189 ,299.3249646 },
70 {
"Modified Fischer 1960 ",
"FA", 6378155.0 ,298.3 },
71 {
"South American 1969 ",
"SA", 6378160.0 ,298.25 },
72 {
"WGS 1972 ",
"WD", 6378135.0 ,298.26 },
73 {
"WGS 1984 ",
"WE", 6378137.0 ,298.257223563 }
98 double N,a,e2,ee2, b, flat,Nh;
118 if(lon>180.0)lon=lon-360.0;
145 N = a / (sqrt(1.0 - e2 * pow(l->
slat,2.0)));
164 strcpy(l->
name, name);
192 *a = ellips[datum].
a;
195 *f =
GEO_FL(ellips[datum].f1);
198 *b =
GEO_B(ellips[datum].a, (ellips[datum].f1));
201 *e2 =
GEO_E2(ellips[datum].a, (ellips[datum].f1));
204 *ee2 =
GEO_E2P(ellips[datum].a, (ellips[datum].f1));
208 printf(
"DEBUG: a=%f, b=%f, f=%f, e2=%f, e2p=%f \n",*a, *b, *f, *e2, *ee2);