21 #include <mrpt/examples_config.h>
23 std::vector<string>
names;
25 const double TH = 0.02;
40 results[0].set_unsafe(0, 0, 435699.5503);
41 results[0].set_unsafe(0, 1, 4194142.0571);
42 results[0].set_unsafe(0, 2, 515.5790);
43 results[0].set_unsafe(1, 0, 443948.2295);
44 results[0].set_unsafe(1, 1, 4160754.7114);
45 results[0].set_unsafe(1, 2, 1489.1880);
46 results[0].set_unsafe(2, 0, 436542.0710);
47 results[0].set_unsafe(2, 1, 4177367.6694);
48 results[0].set_unsafe(2, 2, 1054.1890);
49 results[0].set_unsafe(3, 0, 406284.9288);
50 results[0].set_unsafe(3, 1, 4176492.3033);
51 results[0].set_unsafe(3, 2, 569.1820);
52 results[0].set_unsafe(4, 0, 406546.3268);
53 results[0].set_unsafe(4, 1, 4156628.3641);
54 results[0].set_unsafe(4, 2, 897.6260);
55 results[0].set_unsafe(5, 0, 408051.6599);
56 results[0].set_unsafe(5, 1, 4193733.3066);
57 results[0].set_unsafe(5, 2, 530.4460);
61 results[1].set_unsafe(0, 0, 435810.797);
62 results[1].set_unsafe(0, 1, 4194348.753);
63 results[1].set_unsafe(0, 2, 437.516);
64 results[1].set_unsafe(1, 0, 444059.747);
65 results[1].set_unsafe(1, 1, 4160961.358);
66 results[1].set_unsafe(1, 2, 1410.518);
67 results[1].set_unsafe(2, 0, 436653.444);
68 results[1].set_unsafe(2, 1, 4177574.314);
69 results[1].set_unsafe(2, 2, 975.764);
70 results[1].set_unsafe(3, 0, 406396.235);
71 results[1].set_unsafe(3, 1, 4176698.718);
72 results[1].set_unsafe(3, 2, 490.219);
73 results[1].set_unsafe(4, 0, 406657.783);
74 results[1].set_unsafe(4, 1, 4156834.717);
75 results[1].set_unsafe(4, 2, 818.224);
76 results[1].set_unsafe(5, 0, 408162.836);
77 results[1].set_unsafe(5, 1, 4193939.783);
78 results[1].set_unsafe(5, 2, 451.896);
82 results[2].set_unsafe(0, 0, 435811.252);
83 results[2].set_unsafe(0, 1, 4194347.983);
84 results[2].set_unsafe(0, 2, 515.579);
85 results[2].set_unsafe(1, 0, 444059.929);
86 results[2].set_unsafe(1, 1, 4160960.606);
87 results[2].set_unsafe(1, 2, 1489.188);
88 results[2].set_unsafe(2, 0, 436653.768);
89 results[2].set_unsafe(2, 1, 4177573.581);
90 results[2].set_unsafe(2, 2, 1054.189);
91 results[2].set_unsafe(3, 0, 406396.600);
92 results[2].set_unsafe(3, 1, 4176698.222);
93 results[2].set_unsafe(3, 2, 569.182);
94 results[2].set_unsafe(4, 0, 406657.992);
95 results[2].set_unsafe(4, 1, 4156834.266);
96 results[2].set_unsafe(4, 2, 897.626);
97 results[2].set_unsafe(5, 0, 408163.337);
98 results[2].set_unsafe(5, 1, 4193939.241);
99 results[2].set_unsafe(5, 2, 530.446);
103 results[3].set_unsafe(0, 0, 435811.073);
104 results[3].set_unsafe(0, 1, 4194347.990);
105 results[3].set_unsafe(0, 2, 466.175);
106 results[3].set_unsafe(1, 0, 444059.962);
107 results[3].set_unsafe(1, 1, 4160960.412);
108 results[3].set_unsafe(1, 2, 1439.784);
109 results[3].set_unsafe(2, 0, 436653.708);
110 results[3].set_unsafe(2, 1, 4177573.506);
111 results[3].set_unsafe(2, 2, 1004.785);
112 results[3].set_unsafe(3, 0, 406396.665);
113 results[3].set_unsafe(3, 1, 4176698.318);
114 results[3].set_unsafe(3, 2, 519.778);
115 results[3].set_unsafe(4, 0, 406658.202);
116 results[3].set_unsafe(4, 1, 4156834.269);
117 results[3].set_unsafe(4, 2, 848.222);
118 results[3].set_unsafe(5, 0, 408163.269);
119 results[3].set_unsafe(5, 1, 4193939.405);
120 results[3].set_unsafe(5, 2, 481.042);
124 results[4].set_unsafe(0, 0, 435811.251);
125 results[4].set_unsafe(0, 1, 4194347.974);
126 results[4].set_unsafe(0, 2, 465.655);
127 results[4].set_unsafe(1, 0, 444059.934);
128 results[4].set_unsafe(1, 1, 4160960.612);
129 results[4].set_unsafe(1, 2, 1439.740);
130 results[4].set_unsafe(2, 0, 436653.771);
131 results[4].set_unsafe(2, 1, 4177573.582);
132 results[4].set_unsafe(2, 2, 1004.556);
133 results[4].set_unsafe(3, 0, 406396.596);
134 results[4].set_unsafe(3, 1, 4176698.222);
135 results[4].set_unsafe(3, 2, 520.037);
136 results[4].set_unsafe(4, 0, 406657.988);
137 results[4].set_unsafe(4, 1, 4156834.272);
138 results[4].set_unsafe(4, 2, 848.836);
139 results[4].set_unsafe(5, 0, 408163.337);
140 results[4].set_unsafe(5, 1, 4193939.239);
141 results[4].set_unsafe(5, 2, 480.961);
145 results[5].set_unsafe(0, 0, 435811.250);
146 results[5].set_unsafe(0, 1, 4194347.994);
147 results[5].set_unsafe(0, 2, 437.516);
148 results[5].set_unsafe(1, 0, 444059.921);
149 results[5].set_unsafe(1, 1, 4160960.599);
150 results[5].set_unsafe(1, 2, 1410.518);
151 results[5].set_unsafe(2, 0, 436653.764);
152 results[5].set_unsafe(2, 1, 4177573.581);
153 results[5].set_unsafe(2, 2, 975.764);
154 results[5].set_unsafe(3, 0, 406396.606);
155 results[5].set_unsafe(3, 1, 4176698.225);
156 results[5].set_unsafe(3, 2, 490.219);
157 results[5].set_unsafe(4, 0, 406657.997);
158 results[5].set_unsafe(4, 1, 4156834.260);
159 results[5].set_unsafe(4, 2, 818.224);
160 results[5].set_unsafe(5, 0, 408163.340);
161 results[5].set_unsafe(5, 1, 4193939.242);
162 results[5].set_unsafe(5, 2, 451.896);
166 results[6].set_unsafe(0, 0, 435811.074);
167 results[6].set_unsafe(0, 1, 4194347.994);
168 results[6].set_unsafe(0, 2, 466.791);
169 results[6].set_unsafe(1, 0, 444059.961);
170 results[6].set_unsafe(1, 1, 4160960.410);
171 results[6].set_unsafe(1, 2, 1439.793);
172 results[6].set_unsafe(2, 0, 436653.708);
173 results[6].set_unsafe(2, 1, 4177573.505);
174 results[6].set_unsafe(2, 2, 1005.039);
175 results[6].set_unsafe(3, 0, 406396.667);
176 results[6].set_unsafe(3, 1, 4176698.320);
177 results[6].set_unsafe(3, 2, 519.494);
178 results[6].set_unsafe(4, 0, 406658.203);
179 results[6].set_unsafe(4, 1, 4156834.270);
180 results[6].set_unsafe(4, 2, 847.499);
181 results[6].set_unsafe(5, 0, 408163.267);
182 results[6].set_unsafe(5, 1, 4193939.401);
183 results[6].set_unsafe(5, 2, 481.171);
187 results[7].set_unsafe(0, 0, 435811.250);
188 results[7].set_unsafe(0, 1, 4194347.974);
189 results[7].set_unsafe(0, 2, 465.657);
190 results[7].set_unsafe(1, 0, 444059.935);
191 results[7].set_unsafe(1, 1, 4160960.612);
192 results[7].set_unsafe(1, 2, 1439.739);
193 results[7].set_unsafe(2, 0, 436653.772);
194 results[7].set_unsafe(2, 1, 4177573.582);
195 results[7].set_unsafe(2, 2, 1004.556);
196 results[7].set_unsafe(3, 0, 406396.597);
197 results[7].set_unsafe(3, 1, 4176698.223);
198 results[7].set_unsafe(3, 2, 520.037);
199 results[7].set_unsafe(4, 0, 406657.988);
200 results[7].set_unsafe(4, 1, 4156834.271);
201 results[7].set_unsafe(4, 2, 848.837);
202 results[7].set_unsafe(5, 0, 408163.339);
203 results[7].set_unsafe(5, 1, 4193939.239);
204 results[7].set_unsafe(5, 2, 480.959);
208 results[9].set_unsafe(0, 0, 435811.2512);
209 results[9].set_unsafe(0, 1, 4194347.9756);
210 results[9].set_unsafe(0, 2, 465.6558);
211 results[9].set_unsafe(1, 0, 444059.9337);
212 results[9].set_unsafe(1, 1, 4160960.6109);
213 results[9].set_unsafe(1, 2, 1439.7390);
214 results[9].set_unsafe(2, 0, 436653.7721);
215 results[9].set_unsafe(2, 1, 4177573.5812);
216 results[9].set_unsafe(2, 2, 1004.5560);
217 results[9].set_unsafe(3, 0, 406396.5970);
218 results[9].set_unsafe(3, 1, 4176698.2216);
219 results[9].set_unsafe(3, 2, 520.0376);
220 results[9].set_unsafe(4, 0, 406657.9894);
221 results[9].set_unsafe(4, 1, 4156834.2734);
222 results[9].set_unsafe(4, 2, 848.8373);
223 results[9].set_unsafe(5, 0, 408163.3366);
224 results[9].set_unsafe(5, 1, 4193939.2373);
225 results[9].set_unsafe(5, 2, 480.9593);
229 results[10].set_unsafe(0, 0, 435811.2512);
230 results[10].set_unsafe(0, 1, 4194347.9756);
231 results[10].set_unsafe(0, 2, 465.6558);
232 results[10].set_unsafe(1, 0, 444059.9337);
233 results[10].set_unsafe(1, 1, 4160960.6109);
234 results[10].set_unsafe(1, 2, 1439.7390);
235 results[10].set_unsafe(2, 0, 436653.7721);
236 results[10].set_unsafe(2, 1, 4177573.5812);
237 results[10].set_unsafe(2, 2, 1004.5560);
238 results[10].set_unsafe(3, 0, 406396.5970);
239 results[10].set_unsafe(3, 1, 4176698.2216);
240 results[10].set_unsafe(3, 2, 520.0376);
241 results[10].set_unsafe(4, 0, 406657.9894);
242 results[10].set_unsafe(4, 1, 4156834.2734);
243 results[10].set_unsafe(4, 2, 848.8373);
244 results[10].set_unsafe(5, 0, 408163.3366);
245 results[10].set_unsafe(5, 1, 4193939.2373);
246 results[10].set_unsafe(5, 2, 480.9593);
250 results[11].set_unsafe(0, 0, 435811.156);
251 results[11].set_unsafe(0, 1, 4194347.892);
252 results[11].set_unsafe(0, 2, 466.100);
253 results[11].set_unsafe(1, 0, 444059.719);
254 results[11].set_unsafe(1, 1, 4160960.489);
255 results[11].set_unsafe(1, 2, 1439.389);
256 results[11].set_unsafe(2, 0, 436653.606);
257 results[11].set_unsafe(2, 1, 4177573.398);
258 results[11].set_unsafe(2, 2, 1004.594);
259 results[11].set_unsafe(3, 0, 406396.045);
260 results[11].set_unsafe(3, 1, 4176697.926);
261 results[11].set_unsafe(3, 2, 520.238);
262 results[11].set_unsafe(4, 0, 406658.812);
263 results[11].set_unsafe(4, 1, 4156834.183);
264 results[11].set_unsafe(4, 2, 849.050);
265 results[11].set_unsafe(5, 0, 408163.542);
266 results[11].set_unsafe(5, 1, 4193940.012);
267 results[11].set_unsafe(5, 2, 480.414);
271 results[12].set_unsafe(0, 0, 435811.095);
272 results[12].set_unsafe(0, 1, 4194348.146);
273 results[12].set_unsafe(0, 2, 465.884);
274 results[12].set_unsafe(1, 0, 444059.906);
275 results[12].set_unsafe(1, 1, 4160960.276);
276 results[12].set_unsafe(1, 2, 1439.564);
277 results[12].set_unsafe(2, 0, 436653.748);
278 results[12].set_unsafe(2, 1, 4177573.521);
279 results[12].set_unsafe(2, 2, 1004.572);
280 results[12].set_unsafe(3, 0, 406396.375);
281 results[12].set_unsafe(3, 1, 4176698.033);
282 results[12].set_unsafe(3, 2, 520.147);
283 results[12].set_unsafe(4, 0, 406658.370);
284 results[12].set_unsafe(4, 1, 4156834.517);
285 results[12].set_unsafe(4, 2, 848.945);
286 results[12].set_unsafe(5, 0, 408163.386);
287 results[12].set_unsafe(5, 1, 4193939.406);
288 results[12].set_unsafe(5, 2, 480.674);
292 const CVectorDouble& thisResults,
const unsigned int& example,
295 cout <<
"Example " << example <<
". Results" << setprecision(16) << endl;
296 cout <<
"------------------------------------------------------------------"
303 cout <<
"------------------------------------------------------------------"
309 const size_t N = thisResults.size() / 3;
310 for (
unsigned int i = 0; i < N; ++i)
312 cout <<
names[i] <<
"\t";
314 thisResults[3 * i + 0] -
319 cout << thisResults[3 * i + 0] <<
"\t";
322 thisResults[3 * i + 1] -
327 cout << thisResults[3 * i + 1] <<
"\t";
330 thisResults[3 * i + 2] -
335 cout << thisResults[3 * i + 2] << endl;
342 const size_t N = thisResults.size() / 3;
343 for (
unsigned int i = 0; i < N; ++i)
344 cout <<
names[i] <<
"\t" << thisResults[3 * i + 0] <<
"\t"
345 << thisResults[3 * i + 1] <<
"\t" << thisResults[3 * i + 2]
355 UTMCoords.
x = 435500;
356 UTMCoords.
y = 4194142.057;
357 UTMCoords.
z = 515.579;
360 const char hem =
'n';
363 TEllipsoid ellip = TEllipsoid::Ellipsoid_WGS84();
366 cout <<
"INPUT DATA: " << endl
367 <<
"----------------------------------" << endl;
368 cout <<
"UTM Coordinates: " << endl;
369 cout <<
"X = " << setprecision(15) << UTMCoords.
x << endl;
370 cout <<
"Y = " << UTMCoords.
y << endl;
371 cout <<
"Z = " << UTMCoords.
z << endl;
372 cout <<
"Time zone: " << huso << endl;
373 cout <<
"Hemisphery: " << hem << endl;
374 cout <<
"Ellipsoid: " << ellip.
name << endl;
375 cout <<
"----------------------------------" << endl << endl;
379 cout <<
"UTM to Geodetic" << endl;
380 cout <<
"Geodetic Coordinates:" << endl;
381 cout <<
"Lon = " <<
TCoords(GeodeticCoords.
lon) <<
" ["
382 << GeodeticCoords.
lon <<
"]" << endl;
383 cout <<
"Lat = " <<
TCoords(GeodeticCoords.
lat) <<
" ["
384 << GeodeticCoords.
lon <<
"]" << endl;
385 cout <<
"H = " << GeodeticCoords.
height << endl;
386 cout <<
"----------------------------------" << endl;
391 cout <<
"Geodetic to Geocentric" << endl;
392 cout <<
"Geocentric Coordinates:" << endl;
393 cout <<
"X = " << GeocentricCoords.
x << endl;
394 cout <<
"Y = " << GeocentricCoords.
y << endl;
395 cout <<
"Z = " << GeocentricCoords.
z << endl;
396 cout <<
"----------------------------------" << endl;
401 109.4714, 106.7407, 141.7916, 4.7834, 7.9668, -5.3771, -6.690000);
407 cout <<
"transform7params" << endl;
408 cout <<
"Transformed Geocentric Coordinates:" << endl;
409 cout <<
"X = " << GeocentricCoords2.
x << endl;
410 cout <<
"Y = " << GeocentricCoords2.
y << endl;
411 cout <<
"Z = " << GeocentricCoords2.
z << endl;
412 cout <<
"----------------------------------" << endl;
416 ellip = TEllipsoid::Ellipsoid_Hough_1960();
418 cout <<
"Geocentric to Geodetic" << endl;
419 cout <<
"Geodetic Coordinates:" << endl;
420 cout <<
"Lon = " <<
TCoords(GeodeticCoords2.
lon) <<
" ["
421 << GeodeticCoords2.
lon <<
"]" << endl;
422 cout <<
"Lat = " <<
TCoords(GeodeticCoords2.
lat) <<
" ["
423 << GeodeticCoords2.
lat <<
"]" << endl;
424 cout <<
"H = " << GeodeticCoords2.
height << endl;
425 cout <<
"----------------------------------" << endl;
435 time_zone2, latitude_band2,
TEllipsoid(6378270, 6356794.343,
"USER"));
436 cout <<
"Geodetic to UTM" << endl;
437 cout <<
"UTM Coordinates:" << endl;
438 cout <<
"X = " << UTMCoords2.
x << endl;
439 cout <<
"Y = " << UTMCoords2.
y << endl;
440 cout <<
"Z = " << UTMCoords2.
z << endl;
441 cout <<
"Time zone: " << time_zone2 << endl;
442 cout <<
"----------------------------------" << endl;
458 TCoords(37, 53, 33.072573).getDecimalValue(),
459 TCoords(-3, 43, 52.68965).getDecimalValue(), 515.579);
461 TCoords(37, 35, 31.75505).getDecimalValue(),
462 TCoords(-3, 38, 5.70754).getDecimalValue(), 1489.188);
464 TCoords(37, 44, 29.04253).getDecimalValue(),
465 TCoords(-3, 43, 12.90285).getDecimalValue(), 1054.189);
467 TCoords(37, 43, 51.28918).getDecimalValue(),
468 TCoords(-4, 3, 48.64503).getDecimalValue(), 569.182);
470 TCoords(37, 33, 6.94237).getDecimalValue(),
471 TCoords(-4, 3, 28.81611).getDecimalValue(), 897.626);
473 TCoords(37, 53, 11.26838).getDecimalValue(),
474 TCoords(-4, 2, 44.35794).getDecimalValue(), 530.446);
479 TUTMCoords MAND_UTM, OROZ_UTM, SANC_UTM, ARJO_UTM, CANI_UTM, HALC_UTM;
481 MAND_92633, MAND_UTM, UTMZone, UTMBand, TEllipsoid::Ellipsoid_WGS84());
483 OROZ_96965, OROZ_UTM, UTMZone, UTMBand, TEllipsoid::Ellipsoid_WGS84());
485 SANC_94744, SANC_UTM, UTMZone, UTMBand, TEllipsoid::Ellipsoid_WGS84());
487 ARJO_94633, ARJO_UTM, UTMZone, UTMBand, TEllipsoid::Ellipsoid_WGS84());
489 CANI_96833, CANI_UTM, UTMZone, UTMBand, TEllipsoid::Ellipsoid_WGS84());
491 HALC_92543, HALC_UTM, UTMZone, UTMBand, TEllipsoid::Ellipsoid_WGS84());
494 thisResults.resize(18);
496 thisResults[0] = MAND_UTM.
x;
497 thisResults[1] = MAND_UTM.
y;
498 thisResults[2] = MAND_UTM.
z;
499 thisResults[3] = OROZ_UTM.
x;
500 thisResults[4] = OROZ_UTM.
y;
501 thisResults[5] = OROZ_UTM.
z;
502 thisResults[6] = SANC_UTM.
x;
503 thisResults[7] = SANC_UTM.
y;
504 thisResults[8] = SANC_UTM.
z;
505 thisResults[9] = ARJO_UTM.
x;
506 thisResults[10] = ARJO_UTM.
y;
507 thisResults[11] = ARJO_UTM.
z;
508 thisResults[12] = CANI_UTM.
x;
509 thisResults[13] = CANI_UTM.
y;
510 thisResults[14] = CANI_UTM.
z;
511 thisResults[15] = HALC_UTM.
x;
512 thisResults[16] = HALC_UTM.
y;
513 thisResults[17] = HALC_UTM.
z;
521 TCoords(37, 53, 33.072573).getDecimalValue(),
522 TCoords(-3, 43, 52.68965).getDecimalValue(), 515.579);
524 TCoords(37, 35, 31.75505).getDecimalValue(),
525 TCoords(-3, 38, 5.70754).getDecimalValue(), 1489.188);
527 TCoords(37, 44, 29.04253).getDecimalValue(),
528 TCoords(-3, 43, 12.90285).getDecimalValue(), 1054.189);
530 TCoords(37, 43, 51.28918).getDecimalValue(),
531 TCoords(-4, 3, 48.64503).getDecimalValue(), 569.182);
533 TCoords(37, 33, 6.94237).getDecimalValue(),
534 TCoords(-4, 3, 28.81611).getDecimalValue(), 897.626);
536 TCoords(37, 53, 11.26838).getDecimalValue(),
537 TCoords(-4, 2, 44.35794).getDecimalValue(), 530.446);
539 const TEllipsoid ellip = TEllipsoid::Ellipsoid_Internacional_1924();
553 CANI_Geoc2, HALC_Geoc2;
555 131.0320, 100.2510, 163.3540, -1.2438, -0.0195, -1.1436, -9.3900);
576 TUTMCoords MAND_UTM, OROZ_UTM, SANC_UTM, ARJO_UTM, CANI_UTM, HALC_UTM;
585 thisResults.resize(18);
587 thisResults[0] = MAND_UTM.
x;
588 thisResults[1] = MAND_UTM.
y;
589 thisResults[2] = MAND_UTM.
z;
590 thisResults[3] = OROZ_UTM.
x;
591 thisResults[4] = OROZ_UTM.
y;
592 thisResults[5] = OROZ_UTM.
z;
593 thisResults[6] = SANC_UTM.
x;
594 thisResults[7] = SANC_UTM.
y;
595 thisResults[8] = SANC_UTM.
z;
596 thisResults[9] = ARJO_UTM.
x;
597 thisResults[10] = ARJO_UTM.
y;
598 thisResults[11] = ARJO_UTM.
z;
599 thisResults[12] = CANI_UTM.
x;
600 thisResults[13] = CANI_UTM.
y;
601 thisResults[14] = CANI_UTM.
z;
602 thisResults[15] = HALC_UTM.
x;
603 thisResults[16] = HALC_UTM.
y;
604 thisResults[17] = HALC_UTM.
z;
613 TCoords(37, 53, 33.072573).getDecimalValue(),
614 TCoords(-3, 43, 52.68965).getDecimalValue(), 515.579);
616 TCoords(37, 35, 31.75505).getDecimalValue(),
617 TCoords(-3, 38, 5.70754).getDecimalValue(), 1489.188);
619 TCoords(37, 44, 29.04253).getDecimalValue(),
620 TCoords(-3, 43, 12.90285).getDecimalValue(), 1054.189);
622 TCoords(37, 43, 51.28918).getDecimalValue(),
623 TCoords(-4, 3, 48.64503).getDecimalValue(), 569.182);
625 TCoords(37, 33, 6.94237).getDecimalValue(),
626 TCoords(-4, 3, 28.81611).getDecimalValue(), 897.626);
628 TCoords(37, 53, 11.26838).getDecimalValue(),
629 TCoords(-4, 2, 44.35794).getDecimalValue(), 530.446);
631 const TEllipsoid ellip = TEllipsoid::Ellipsoid_WGS84();
636 TUTMCoords MAND_UTM, OROZ_UTM, SANC_UTM, ARJO_UTM, CANI_UTM, HALC_UTM;
637 geodeticToUTM(MAND_92633, MAND_UTM, UTMZone, UTMBand, ellip);
638 geodeticToUTM(OROZ_96965, OROZ_UTM, UTMZone, UTMBand, ellip);
639 geodeticToUTM(SANC_94744, SANC_UTM, UTMZone, UTMBand, ellip);
640 geodeticToUTM(ARJO_94633, ARJO_UTM, UTMZone, UTMBand, ellip);
641 geodeticToUTM(CANI_96833, CANI_UTM, UTMZone, UTMBand, ellip);
642 geodeticToUTM(HALC_92543, HALC_UTM, UTMZone, UTMBand, ellip);
645 TPoint2D MAND_point, OROZ_point, SANC_point, ARJO_point, CANI_point,
648 1.0000008551, 0.0000002900, 110.1121641064, 202.4657352579);
650 TPoint2D(MAND_UTM.
x, MAND_UTM.
y), datum, MAND_point);
652 TPoint2D(OROZ_UTM.
x, OROZ_UTM.
y), datum, OROZ_point);
654 TPoint2D(SANC_UTM.
x, SANC_UTM.
y), datum, SANC_point);
656 TPoint2D(ARJO_UTM.
x, ARJO_UTM.
y), datum, ARJO_point);
658 TPoint2D(CANI_UTM.
x, CANI_UTM.
y), datum, CANI_point);
660 TPoint2D(HALC_UTM.
x, HALC_UTM.
y), datum, HALC_point);
663 thisResults.resize(18);
665 thisResults[0] = MAND_point.
x;
666 thisResults[1] = MAND_point.
y;
667 thisResults[2] = MAND_UTM.
z;
668 thisResults[3] = OROZ_point.
x;
669 thisResults[4] = OROZ_point.
y;
670 thisResults[5] = OROZ_UTM.
z;
671 thisResults[6] = SANC_point.
x;
672 thisResults[7] = SANC_point.
y;
673 thisResults[8] = SANC_UTM.
z;
674 thisResults[9] = ARJO_point.
x;
675 thisResults[10] = ARJO_point.
y;
676 thisResults[11] = ARJO_UTM.
z;
677 thisResults[12] = CANI_point.
x;
678 thisResults[13] = CANI_point.
y;
679 thisResults[14] = CANI_UTM.
z;
680 thisResults[15] = HALC_point.
x;
681 thisResults[16] = HALC_point.
y;
682 thisResults[17] = HALC_UTM.
z;
691 TCoords(37, 53, 33.072573).getDecimalValue(),
692 TCoords(-3, 43, 52.68965).getDecimalValue(), 515.579);
694 TCoords(37, 35, 31.75505).getDecimalValue(),
695 TCoords(-3, 38, 5.70754).getDecimalValue(), 1489.188);
697 TCoords(37, 44, 29.04253).getDecimalValue(),
698 TCoords(-3, 43, 12.90285).getDecimalValue(), 1054.189);
700 TCoords(37, 43, 51.28918).getDecimalValue(),
701 TCoords(-4, 3, 48.64503).getDecimalValue(), 569.182);
703 TCoords(37, 33, 6.94237).getDecimalValue(),
704 TCoords(-4, 3, 28.81611).getDecimalValue(), 897.626);
706 TCoords(37, 53, 11.26838).getDecimalValue(),
707 TCoords(-4, 2, 44.35794).getDecimalValue(), 530.446);
709 const TEllipsoid ellip = TEllipsoid::Ellipsoid_WGS84();
714 TUTMCoords MAND_UTM, OROZ_UTM, SANC_UTM, ARJO_UTM, CANI_UTM, HALC_UTM;
715 geodeticToUTM(MAND_92633, MAND_UTM, UTMZone, UTMBand, ellip);
716 geodeticToUTM(OROZ_96965, OROZ_UTM, UTMZone, UTMBand, ellip);
717 geodeticToUTM(SANC_94744, SANC_UTM, UTMZone, UTMBand, ellip);
718 geodeticToUTM(ARJO_94633, ARJO_UTM, UTMZone, UTMBand, ellip);
719 geodeticToUTM(CANI_96833, CANI_UTM, UTMZone, UTMBand, ellip);
720 geodeticToUTM(HALC_92543, HALC_UTM, UTMZone, UTMBand, ellip);
723 TUTMCoords MAND_point, OROZ_point, SANC_point, ARJO_point, CANI_point,
726 0.9999969509, -0.0000070551, 142.4402790576, -0.0000060616,
727 1.0000054540, 185.6991268722, -49.4041666667);
736 thisResults.resize(18);
738 thisResults[0] = MAND_point.
x;
739 thisResults[1] = MAND_point.
y;
740 thisResults[2] = MAND_point.
z;
741 thisResults[3] = OROZ_point.
x;
742 thisResults[4] = OROZ_point.
y;
743 thisResults[5] = OROZ_point.
z;
744 thisResults[6] = SANC_point.
x;
745 thisResults[7] = SANC_point.
y;
746 thisResults[8] = SANC_point.
z;
747 thisResults[9] = ARJO_point.
x;
748 thisResults[10] = ARJO_point.
y;
749 thisResults[11] = ARJO_point.
z;
750 thisResults[12] = CANI_point.
x;
751 thisResults[13] = CANI_point.
y;
752 thisResults[14] = CANI_point.
z;
753 thisResults[15] = HALC_point.
x;
754 thisResults[16] = HALC_point.
y;
755 thisResults[17] = HALC_point.
z;
764 TCoords(37, 53, 33.072573).getDecimalValue(),
765 TCoords(-3, 43, 52.68965).getDecimalValue(), 515.579);
767 TCoords(37, 35, 31.75505).getDecimalValue(),
768 TCoords(-3, 38, 5.70754).getDecimalValue(), 1489.188);
770 TCoords(37, 44, 29.04253).getDecimalValue(),
771 TCoords(-3, 43, 12.90285).getDecimalValue(), 1054.189);
773 TCoords(37, 43, 51.28918).getDecimalValue(),
774 TCoords(-4, 3, 48.64503).getDecimalValue(), 569.182);
776 TCoords(37, 33, 6.94237).getDecimalValue(),
777 TCoords(-4, 3, 28.81611).getDecimalValue(), 897.626);
779 TCoords(37, 53, 11.26838).getDecimalValue(),
780 TCoords(-4, 2, 44.35794).getDecimalValue(), 530.446);
787 TUTMCoords MAND_UTM, OROZ_UTM, SANC_UTM, ARJO_UTM, CANI_UTM, HALC_UTM;
788 geodeticToUTM(MAND_92633, MAND_UTM, UTMZone, UTMBand, ellip);
789 geodeticToUTM(OROZ_96965, OROZ_UTM, UTMZone, UTMBand, ellip);
790 geodeticToUTM(SANC_94744, SANC_UTM, UTMZone, UTMBand, ellip);
791 geodeticToUTM(ARJO_94633, ARJO_UTM, UTMZone, UTMBand, ellip);
792 geodeticToUTM(CANI_96833, CANI_UTM, UTMZone, UTMBand, ellip);
793 geodeticToUTM(HALC_92543, HALC_UTM, UTMZone, UTMBand, ellip);
796 TUTMCoords MAND_point, OROZ_point, SANC_point, ARJO_point, CANI_point,
799 109.035107801496, 202.610276063935, 32.727057571807, 0.9999999999,
800 0.0000005460, 0.0000156068, -0.0000005463, 0.9999999998, 0.0000180851,
801 -0.0000156068, -0.0000180851, 0.9999999997, 0.842993545636);
810 thisResults.resize(18);
812 thisResults[0] = MAND_point.
x;
813 thisResults[1] = MAND_point.
y;
814 thisResults[2] = MAND_point.
z;
815 thisResults[3] = OROZ_point.
x;
816 thisResults[4] = OROZ_point.
y;
817 thisResults[5] = OROZ_point.
z;
818 thisResults[6] = SANC_point.
x;
819 thisResults[7] = SANC_point.
y;
820 thisResults[8] = SANC_point.
z;
821 thisResults[9] = ARJO_point.
x;
822 thisResults[10] = ARJO_point.
y;
823 thisResults[11] = ARJO_point.
z;
824 thisResults[12] = CANI_point.
x;
825 thisResults[13] = CANI_point.
y;
826 thisResults[14] = CANI_point.
z;
827 thisResults[15] = HALC_point.
x;
828 thisResults[16] = HALC_point.
y;
829 thisResults[17] = HALC_point.
z;
837 TCoords(37, 53, 33.072573).getDecimalValue(),
838 TCoords(-3, 43, 52.68965).getDecimalValue(), 515.579);
840 TCoords(37, 35, 31.75505).getDecimalValue(),
841 TCoords(-3, 38, 5.70754).getDecimalValue(), 1489.188);
843 TCoords(37, 44, 29.04253).getDecimalValue(),
844 TCoords(-3, 43, 12.90285).getDecimalValue(), 1054.189);
846 TCoords(37, 43, 51.28918).getDecimalValue(),
847 TCoords(-4, 3, 48.64503).getDecimalValue(), 569.182);
849 TCoords(37, 33, 6.94237).getDecimalValue(),
850 TCoords(-4, 3, 28.81611).getDecimalValue(), 897.626);
852 TCoords(37, 53, 11.26838).getDecimalValue(),
853 TCoords(-4, 2, 44.35794).getDecimalValue(), 530.446);
855 const TEllipsoid ellip = TEllipsoid::Ellipsoid_Internacional_1924();
869 CANI_Geoc2, HALC_Geoc2;
871 131.0320, 100.2510, 163.3540, -1.2438, -0.0195, -1.1436, -9.3900);
892 TUTMCoords MAND_UTM, OROZ_UTM, SANC_UTM, ARJO_UTM, CANI_UTM, HALC_UTM;
901 thisResults.resize(18);
903 thisResults[0] = MAND_UTM.
x;
904 thisResults[1] = MAND_UTM.
y;
905 thisResults[2] = MAND_UTM.
z;
906 thisResults[3] = OROZ_UTM.
x;
907 thisResults[4] = OROZ_UTM.
y;
908 thisResults[5] = OROZ_UTM.
z;
909 thisResults[6] = SANC_UTM.
x;
910 thisResults[7] = SANC_UTM.
y;
911 thisResults[8] = SANC_UTM.
z;
912 thisResults[9] = ARJO_UTM.
x;
913 thisResults[10] = ARJO_UTM.
y;
914 thisResults[11] = ARJO_UTM.
z;
915 thisResults[12] = CANI_UTM.
x;
916 thisResults[13] = CANI_UTM.
y;
917 thisResults[14] = CANI_UTM.
z;
918 thisResults[15] = HALC_UTM.
x;
919 thisResults[16] = HALC_UTM.
y;
920 thisResults[17] = HALC_UTM.
z;
925 TPoint2D MAND_point, OROZ_point, SANC_point, ARJO_point, CANI_point,
928 0.9999980621, 0.0000078756, -31.7350304827, 10.8014994871);
930 TPoint2D(MAND_UTM.
x, MAND_UTM.
y), dat, MAND_point);
932 TPoint2D(OROZ_UTM.
x, OROZ_UTM.
y), dat, OROZ_point);
934 TPoint2D(SANC_UTM.
x, SANC_UTM.
y), dat, SANC_point);
936 TPoint2D(ARJO_UTM.
x, ARJO_UTM.
y), dat, ARJO_point);
938 TPoint2D(CANI_UTM.
x, CANI_UTM.
y), dat, CANI_point);
940 TPoint2D(HALC_UTM.
x, HALC_UTM.
y), dat, HALC_point);
942 thisResults[0] = MAND_point.
x;
943 thisResults[1] = MAND_point.
y;
944 thisResults[2] = MAND_UTM.
z;
945 thisResults[3] = OROZ_point.
x;
946 thisResults[4] = OROZ_point.
y;
947 thisResults[5] = OROZ_UTM.
z;
948 thisResults[6] = SANC_point.
x;
949 thisResults[7] = SANC_point.
y;
950 thisResults[8] = SANC_UTM.
z;
951 thisResults[9] = ARJO_point.
x;
952 thisResults[10] = ARJO_point.
y;
953 thisResults[11] = ARJO_UTM.
z;
954 thisResults[12] = CANI_point.
x;
955 thisResults[13] = CANI_point.
y;
956 thisResults[14] = CANI_UTM.
z;
957 thisResults[15] = HALC_point.
x;
958 thisResults[16] = HALC_point.
y;
959 thisResults[17] = HALC_UTM.
z;
967 TCoords(37, 53, 33.072573).getDecimalValue(),
968 TCoords(-3, 43, 52.68965).getDecimalValue(), 515.579);
970 TCoords(37, 35, 31.75505).getDecimalValue(),
971 TCoords(-3, 38, 5.70754).getDecimalValue(), 1489.188);
973 TCoords(37, 44, 29.04253).getDecimalValue(),
974 TCoords(-3, 43, 12.90285).getDecimalValue(), 1054.189);
976 TCoords(37, 43, 51.28918).getDecimalValue(),
977 TCoords(-4, 3, 48.64503).getDecimalValue(), 569.182);
979 TCoords(37, 33, 6.94237).getDecimalValue(),
980 TCoords(-4, 3, 28.81611).getDecimalValue(), 897.626);
982 TCoords(37, 53, 11.26838).getDecimalValue(),
983 TCoords(-4, 2, 44.35794).getDecimalValue(), 530.446);
985 const TEllipsoid ellip = TEllipsoid::Ellipsoid_Internacional_1924();
999 CANI_Geoc2, HALC_Geoc2;
1001 131.0320, 100.2510, 163.3540, -1.2438, -0.0195, -1.1436, -9.3900);
1010 TGeodeticCoords MAND_Geod, OROZ_Geod, SANC_Geod, ARJO_Geod, CANI_Geod,
1022 TUTMCoords MAND_UTM, OROZ_UTM, SANC_UTM, ARJO_UTM, CANI_UTM, HALC_UTM;
1023 geodeticToUTM(MAND_Geod, MAND_UTM, UTMZone, UTMBand, ellip);
1024 geodeticToUTM(OROZ_Geod, OROZ_UTM, UTMZone, UTMBand, ellip);
1025 geodeticToUTM(SANC_Geod, SANC_UTM, UTMZone, UTMBand, ellip);
1026 geodeticToUTM(ARJO_Geod, ARJO_UTM, UTMZone, UTMBand, ellip);
1027 geodeticToUTM(CANI_Geod, CANI_UTM, UTMZone, UTMBand, ellip);
1028 geodeticToUTM(HALC_Geod, HALC_UTM, UTMZone, UTMBand, ellip);
1031 thisResults.resize(18);
1033 thisResults[0] = MAND_UTM.
x;
1034 thisResults[1] = MAND_UTM.
y;
1035 thisResults[2] = MAND_UTM.
z;
1036 thisResults[3] = OROZ_UTM.
x;
1037 thisResults[4] = OROZ_UTM.
y;
1038 thisResults[5] = OROZ_UTM.
z;
1039 thisResults[6] = SANC_UTM.
x;
1040 thisResults[7] = SANC_UTM.
y;
1041 thisResults[8] = SANC_UTM.
z;
1042 thisResults[9] = ARJO_UTM.
x;
1043 thisResults[10] = ARJO_UTM.
y;
1044 thisResults[11] = ARJO_UTM.
z;
1045 thisResults[12] = CANI_UTM.
x;
1046 thisResults[13] = CANI_UTM.
y;
1047 thisResults[14] = CANI_UTM.
z;
1048 thisResults[15] = HALC_UTM.
x;
1049 thisResults[16] = HALC_UTM.
y;
1050 thisResults[17] = HALC_UTM.
z;
1055 TPoint3D MAND_point, OROZ_point, SANC_point, ARJO_point, CANI_point,
1058 0.9999944446, 0.0000005236, 0.5022460081, -0.0000136628, 1.0000023039,
1059 -4.4675776973, 29.2747378118);
1067 thisResults[0] = MAND_point.
x;
1068 thisResults[1] = MAND_point.
y;
1069 thisResults[2] = MAND_point.
z;
1070 thisResults[3] = OROZ_point.
x;
1071 thisResults[4] = OROZ_point.
y;
1072 thisResults[5] = OROZ_point.
z;
1073 thisResults[6] = SANC_point.
x;
1074 thisResults[7] = SANC_point.
y;
1075 thisResults[8] = SANC_point.
z;
1076 thisResults[9] = ARJO_point.
x;
1077 thisResults[10] = ARJO_point.
y;
1078 thisResults[11] = ARJO_point.
z;
1079 thisResults[12] = CANI_point.
x;
1080 thisResults[13] = CANI_point.
y;
1081 thisResults[14] = CANI_point.
z;
1082 thisResults[15] = HALC_point.
x;
1083 thisResults[16] = HALC_point.
y;
1084 thisResults[17] = HALC_point.
z;
1092 TCoords(37, 53, 33.072573).getDecimalValue(),
1093 TCoords(-3, 43, 52.68965).getDecimalValue(), 515.579);
1095 TCoords(37, 35, 31.75505).getDecimalValue(),
1096 TCoords(-3, 38, 5.70754).getDecimalValue(), 1489.188);
1098 TCoords(37, 44, 29.04253).getDecimalValue(),
1099 TCoords(-3, 43, 12.90285).getDecimalValue(), 1054.189);
1101 TCoords(37, 43, 51.28918).getDecimalValue(),
1102 TCoords(-4, 3, 48.64503).getDecimalValue(), 569.182);
1104 TCoords(37, 33, 6.94237).getDecimalValue(),
1105 TCoords(-4, 3, 28.81611).getDecimalValue(), 897.626);
1107 TCoords(37, 53, 11.26838).getDecimalValue(),
1108 TCoords(-4, 2, 44.35794).getDecimalValue(), 530.446);
1110 const TEllipsoid ellip = TEllipsoid::Ellipsoid_Internacional_1924();
1124 CANI_Geoc2, HALC_Geoc2;
1126 131.0320, 100.2510, 163.3540, -1.2438, -0.0195, -1.1436, -9.3900);
1135 TGeodeticCoords MAND_Geod, OROZ_Geod, SANC_Geod, ARJO_Geod, CANI_Geod,
1147 TUTMCoords MAND_UTM, OROZ_UTM, SANC_UTM, ARJO_UTM, CANI_UTM, HALC_UTM;
1148 geodeticToUTM(MAND_Geod, MAND_UTM, UTMZone, UTMBand, ellip);
1149 geodeticToUTM(OROZ_Geod, OROZ_UTM, UTMZone, UTMBand, ellip);
1150 geodeticToUTM(SANC_Geod, SANC_UTM, UTMZone, UTMBand, ellip);
1151 geodeticToUTM(ARJO_Geod, ARJO_UTM, UTMZone, UTMBand, ellip);
1152 geodeticToUTM(CANI_Geod, CANI_UTM, UTMZone, UTMBand, ellip);
1153 geodeticToUTM(HALC_Geod, HALC_UTM, UTMZone, UTMBand, ellip);
1156 thisResults.resize(18);
1158 thisResults[0] = MAND_UTM.
x;
1159 thisResults[1] = MAND_UTM.
y;
1160 thisResults[2] = MAND_UTM.
z;
1161 thisResults[3] = OROZ_UTM.
x;
1162 thisResults[4] = OROZ_UTM.
y;
1163 thisResults[5] = OROZ_UTM.
z;
1164 thisResults[6] = SANC_UTM.
x;
1165 thisResults[7] = SANC_UTM.
y;
1166 thisResults[8] = SANC_UTM.
z;
1167 thisResults[9] = ARJO_UTM.
x;
1168 thisResults[10] = ARJO_UTM.
y;
1169 thisResults[11] = ARJO_UTM.
z;
1170 thisResults[12] = CANI_UTM.
x;
1171 thisResults[13] = CANI_UTM.
y;
1172 thisResults[14] = CANI_UTM.
z;
1173 thisResults[15] = HALC_UTM.
x;
1174 thisResults[16] = HALC_UTM.
y;
1175 thisResults[17] = HALC_UTM.
z;
1181 CANI_Geoc3, HALC_Geoc3;
1186 -34.095438458048, 10.843234125336, 212.169692142148, 0.9999999994,
1187 0.0000084308, 0.0000327341, -0.0000084321, 0.9999999991, 0.0000404737,
1188 -0.0000327338, -0.0000404737, 0.9999999986, -1.898114919019);
1196 thisResults[0] = MAND_Geoc3.
x;
1197 thisResults[1] = MAND_Geoc3.
y;
1198 thisResults[2] = MAND_Geoc3.
z;
1199 thisResults[3] = OROZ_Geoc3.
x;
1200 thisResults[4] = OROZ_Geoc3.
y;
1201 thisResults[5] = OROZ_Geoc3.
z;
1202 thisResults[6] = SANC_Geoc3.
x;
1203 thisResults[7] = SANC_Geoc3.
y;
1204 thisResults[8] = SANC_Geoc3.
z;
1205 thisResults[9] = ARJO_Geoc3.
x;
1206 thisResults[10] = ARJO_Geoc3.
y;
1207 thisResults[11] = ARJO_Geoc3.
z;
1208 thisResults[12] = CANI_Geoc3.
x;
1209 thisResults[13] = CANI_Geoc3.
y;
1210 thisResults[14] = CANI_Geoc3.
z;
1211 thisResults[15] = HALC_Geoc3.
x;
1212 thisResults[16] = HALC_Geoc3.
y;
1213 thisResults[17] = HALC_Geoc3.
z;
1221 TCoords(37, 53, 33.072573).getDecimalValue(),
1222 TCoords(-3, 43, 52.68965).getDecimalValue(), 515.579);
1224 TCoords(37, 35, 31.75505).getDecimalValue(),
1225 TCoords(-3, 38, 5.70754).getDecimalValue(), 1489.188);
1227 TCoords(37, 44, 29.04253).getDecimalValue(),
1228 TCoords(-3, 43, 12.90285).getDecimalValue(), 1054.189);
1230 TCoords(37, 43, 51.28918).getDecimalValue(),
1231 TCoords(-4, 3, 48.64503).getDecimalValue(), 569.182);
1233 TCoords(37, 33, 6.94237).getDecimalValue(),
1234 TCoords(-4, 3, 28.81611).getDecimalValue(), 897.626);
1236 TCoords(37, 53, 11.26838).getDecimalValue(),
1237 TCoords(-4, 2, 44.35794).getDecimalValue(), 530.446);
1239 const TEllipsoid ellip = TEllipsoid::Ellipsoid_Hayford_1909();
1253 CANI_Geoc2, HALC_Geoc2;
1255 284.2535, -116.9549, -34.8027, 4.78337, 7.96684, -5.37707, -6.6900);
1264 TGeodeticCoords MAND_Geod, OROZ_Geod, SANC_Geod, ARJO_Geod, CANI_Geod,
1276 TUTMCoords MAND_UTM, OROZ_UTM, SANC_UTM, ARJO_UTM, CANI_UTM, HALC_UTM;
1277 geodeticToUTM(MAND_Geod, MAND_UTM, UTMZone, UTMBand, ellip);
1278 geodeticToUTM(OROZ_Geod, OROZ_UTM, UTMZone, UTMBand, ellip);
1279 geodeticToUTM(SANC_Geod, SANC_UTM, UTMZone, UTMBand, ellip);
1280 geodeticToUTM(ARJO_Geod, ARJO_UTM, UTMZone, UTMBand, ellip);
1281 geodeticToUTM(CANI_Geod, CANI_UTM, UTMZone, UTMBand, ellip);
1282 geodeticToUTM(HALC_Geod, HALC_UTM, UTMZone, UTMBand, ellip);
1285 thisResults.resize(18);
1287 thisResults[0] = MAND_UTM.
x;
1288 thisResults[1] = MAND_UTM.
y;
1289 thisResults[2] = MAND_UTM.
z;
1290 thisResults[3] = OROZ_UTM.
x;
1291 thisResults[4] = OROZ_UTM.
y;
1292 thisResults[5] = OROZ_UTM.
z;
1293 thisResults[6] = SANC_UTM.
x;
1294 thisResults[7] = SANC_UTM.
y;
1295 thisResults[8] = SANC_UTM.
z;
1296 thisResults[9] = ARJO_UTM.
x;
1297 thisResults[10] = ARJO_UTM.
y;
1298 thisResults[11] = ARJO_UTM.
z;
1299 thisResults[12] = CANI_UTM.
x;
1300 thisResults[13] = CANI_UTM.
y;
1301 thisResults[14] = CANI_UTM.
z;
1302 thisResults[15] = HALC_UTM.
x;
1303 thisResults[16] = HALC_UTM.
y;
1304 thisResults[17] = HALC_UTM.
z;
1312 TCoords(37, 53, 33.072573).getDecimalValue(),
1313 TCoords(-3, 43, 52.68965).getDecimalValue(), 515.579);
1315 TCoords(37, 35, 31.75505).getDecimalValue(),
1316 TCoords(-3, 38, 5.70754).getDecimalValue(), 1489.188);
1318 TCoords(37, 44, 29.04253).getDecimalValue(),
1319 TCoords(-3, 43, 12.90285).getDecimalValue(), 1054.189);
1321 TCoords(37, 43, 51.28918).getDecimalValue(),
1322 TCoords(-4, 3, 48.64503).getDecimalValue(), 569.182);
1324 TCoords(37, 33, 6.94237).getDecimalValue(),
1325 TCoords(-4, 3, 28.81611).getDecimalValue(), 897.626);
1327 TCoords(37, 53, 11.26838).getDecimalValue(),
1328 TCoords(-4, 2, 44.35794).getDecimalValue(), 530.446);
1330 const TEllipsoid ellip = TEllipsoid::Ellipsoid_Hayford_1909();
1344 CANI_Geoc2, HALC_Geoc2;
1346 109.4714, 106.7407, 141.7916, 5039726.4242, -341417.6071, 3882515.5524,
1347 4.78337, 7.96684, -5.37707, -6.6900);
1356 TGeodeticCoords MAND_Geod, OROZ_Geod, SANC_Geod, ARJO_Geod, CANI_Geod,
1368 TUTMCoords MAND_UTM, OROZ_UTM, SANC_UTM, ARJO_UTM, CANI_UTM, HALC_UTM;
1369 geodeticToUTM(MAND_Geod, MAND_UTM, UTMZone, UTMBand, ellip);
1370 geodeticToUTM(OROZ_Geod, OROZ_UTM, UTMZone, UTMBand, ellip);
1371 geodeticToUTM(SANC_Geod, SANC_UTM, UTMZone, UTMBand, ellip);
1372 geodeticToUTM(ARJO_Geod, ARJO_UTM, UTMZone, UTMBand, ellip);
1373 geodeticToUTM(CANI_Geod, CANI_UTM, UTMZone, UTMBand, ellip);
1374 geodeticToUTM(HALC_Geod, HALC_UTM, UTMZone, UTMBand, ellip);
1377 thisResults.resize(18);
1379 thisResults[0] = MAND_UTM.
x;
1380 thisResults[1] = MAND_UTM.
y;
1381 thisResults[2] = MAND_UTM.
z;
1382 thisResults[3] = OROZ_UTM.
x;
1383 thisResults[4] = OROZ_UTM.
y;
1384 thisResults[5] = OROZ_UTM.
z;
1385 thisResults[6] = SANC_UTM.
x;
1386 thisResults[7] = SANC_UTM.
y;
1387 thisResults[8] = SANC_UTM.
z;
1388 thisResults[9] = ARJO_UTM.
x;
1389 thisResults[10] = ARJO_UTM.
y;
1390 thisResults[11] = ARJO_UTM.
z;
1391 thisResults[12] = CANI_UTM.
x;
1392 thisResults[13] = CANI_UTM.
y;
1393 thisResults[14] = CANI_UTM.
z;
1394 thisResults[15] = HALC_UTM.
x;
1395 thisResults[16] = HALC_UTM.
y;
1396 thisResults[17] = HALC_UTM.
z;
1404 TCoords(37, 53, 33.072573).getDecimalValue(),
1405 TCoords(-3, 43, 52.68965).getDecimalValue(), 515.579);
1407 TCoords(37, 35, 31.75505).getDecimalValue(),
1408 TCoords(-3, 38, 5.70754).getDecimalValue(), 1489.188);
1410 TCoords(37, 44, 29.04253).getDecimalValue(),
1411 TCoords(-3, 43, 12.90285).getDecimalValue(), 1054.189);
1413 TCoords(37, 43, 51.28918).getDecimalValue(),
1414 TCoords(-4, 3, 48.64503).getDecimalValue(), 569.182);
1416 TCoords(37, 33, 6.94237).getDecimalValue(),
1417 TCoords(-4, 3, 28.81611).getDecimalValue(), 897.626);
1419 TCoords(37, 53, 11.26838).getDecimalValue(),
1420 TCoords(-4, 2, 44.35794).getDecimalValue(), 530.446);
1422 const TEllipsoid ellip = TEllipsoid::Ellipsoid_Hayford_1909();
1427 TUTMCoords MAND_UTM, OROZ_UTM, SANC_UTM, ARJO_UTM, CANI_UTM, HALC_UTM;
1428 geodeticToUTM(MAND_92633, MAND_UTM, UTMZone, UTMBand, ellip);
1429 geodeticToUTM(OROZ_96965, OROZ_UTM, UTMZone, UTMBand, ellip);
1430 geodeticToUTM(SANC_94744, SANC_UTM, UTMZone, UTMBand, ellip);
1431 geodeticToUTM(ARJO_94633, ARJO_UTM, UTMZone, UTMBand, ellip);
1432 geodeticToUTM(CANI_96833, CANI_UTM, UTMZone, UTMBand, ellip);
1433 geodeticToUTM(HALC_92543, HALC_UTM, UTMZone, UTMBand, ellip);
1436 TPoint2D MAND_point, OROZ_point, SANC_point, ARJO_point, CANI_point,
1439 15.8778, 0.4491,
TCoords(0, 32, 8.75881).getDecimalValue() ,
1440 -325.9604, 422956.6976, 4176709.7722);
1449 TPoint3D MAND_point2, OROZ_point2, SANC_point2, ARJO_point2, CANI_point2,
1453 TPoint3D(MAND_point.
x, MAND_point.
y, MAND_UTM.
z), datum, MAND_point2);
1455 TPoint3D(OROZ_point.
x, OROZ_point.
y, OROZ_UTM.
z), datum, OROZ_point2);
1457 TPoint3D(SANC_point.
x, SANC_point.
y, SANC_UTM.
z), datum, SANC_point2);
1459 TPoint3D(ARJO_point.
x, ARJO_point.
y, ARJO_UTM.
z), datum, ARJO_point2);
1461 TPoint3D(CANI_point.
x, CANI_point.
y, CANI_UTM.
z), datum, CANI_point2);
1463 TPoint3D(HALC_point.
x, HALC_point.
y, HALC_UTM.
z), datum, HALC_point2);
1466 thisResults.resize(18);
1468 thisResults[0] = MAND_point2.
x;
1469 thisResults[1] = MAND_point2.
y;
1470 thisResults[2] = MAND_point2.
z;
1471 thisResults[3] = OROZ_point2.
x;
1472 thisResults[4] = OROZ_point2.
y;
1473 thisResults[5] = OROZ_point2.
z;
1474 thisResults[6] = SANC_point2.
x;
1475 thisResults[7] = SANC_point2.
y;
1476 thisResults[8] = SANC_point2.
z;
1477 thisResults[9] = ARJO_point2.
x;
1478 thisResults[10] = ARJO_point2.
y;
1479 thisResults[11] = ARJO_point2.
z;
1480 thisResults[12] = CANI_point2.
x;
1481 thisResults[13] = CANI_point2.
y;
1482 thisResults[14] = CANI_point2.
z;
1483 thisResults[15] = HALC_point2.
x;
1484 thisResults[16] = HALC_point2.
y;
1485 thisResults[17] = HALC_point2.
z;
1493 TCoords(37, 53, 33.072573).getDecimalValue(),
1494 TCoords(-3, 43, 52.68965).getDecimalValue(), 515.579);
1496 TCoords(37, 35, 31.75505).getDecimalValue(),
1497 TCoords(-3, 38, 5.70754).getDecimalValue(), 1489.188);
1499 TCoords(37, 44, 29.04253).getDecimalValue(),
1500 TCoords(-3, 43, 12.90285).getDecimalValue(), 1054.189);
1502 TCoords(37, 43, 51.28918).getDecimalValue(),
1503 TCoords(-4, 3, 48.64503).getDecimalValue(), 569.182);
1505 TCoords(37, 33, 6.94237).getDecimalValue(),
1506 TCoords(-4, 3, 28.81611).getDecimalValue(), 897.626);
1508 TCoords(37, 53, 11.26838).getDecimalValue(),
1509 TCoords(-4, 2, 44.35794).getDecimalValue(), 530.446);
1511 const TEllipsoid ellip = TEllipsoid::Ellipsoid_Hayford_1909();
1516 TUTMCoords MAND_UTM, OROZ_UTM, SANC_UTM, ARJO_UTM, CANI_UTM, HALC_UTM;
1517 geodeticToUTM(MAND_92633, MAND_UTM, UTMZone, UTMBand, ellip);
1518 geodeticToUTM(OROZ_96965, OROZ_UTM, UTMZone, UTMBand, ellip);
1519 geodeticToUTM(SANC_94744, SANC_UTM, UTMZone, UTMBand, ellip);
1520 geodeticToUTM(ARJO_94633, ARJO_UTM, UTMZone, UTMBand, ellip);
1521 geodeticToUTM(CANI_96833, CANI_UTM, UTMZone, UTMBand, ellip);
1522 geodeticToUTM(HALC_92543, HALC_UTM, UTMZone, UTMBand, ellip);
1525 TPoint3D MAND_point, OROZ_point, SANC_point, ARJO_point, CANI_point,
1528 423150.0514, 4197393.9437, -334.2393 , -314.2785 ,
1538 TPoint3D MAND_point2, OROZ_point2, SANC_point2, ARJO_point2, CANI_point2,
1549 thisResults.resize(18);
1551 thisResults[0] = MAND_point2.
x;
1552 thisResults[1] = MAND_point2.
y;
1553 thisResults[2] = MAND_point2.
z;
1554 thisResults[3] = OROZ_point2.
x;
1555 thisResults[4] = OROZ_point2.
y;
1556 thisResults[5] = OROZ_point2.
z;
1557 thisResults[6] = SANC_point2.
x;
1558 thisResults[7] = SANC_point2.
y;
1559 thisResults[8] = SANC_point2.
z;
1560 thisResults[9] = ARJO_point2.
x;
1561 thisResults[10] = ARJO_point2.
y;
1562 thisResults[11] = ARJO_point2.
z;
1563 thisResults[12] = CANI_point2.
x;
1564 thisResults[13] = CANI_point2.
y;
1565 thisResults[14] = CANI_point2.
z;
1566 thisResults[15] = HALC_point2.
x;
1567 thisResults[16] = HALC_point2.
y;
1568 thisResults[17] = HALC_point2.
z;
1573 int main(
int argc,
char** argv)
1580 cout <<
"**************************************" << endl;
1581 cout <<
"\tTOPCON with th = " <<
TH << endl;
1582 cout <<
"**************************************" << endl;
1593 cout <<
"**************************************" << endl;
1594 cout <<
"\tLEICA with th = " <<
TH << endl;
1595 cout <<
"**************************************" << endl;
1597 cout <<
"Example 09 missing in pdf" << endl;
1605 catch (std::exception& e)
1607 std::cout <<
"MRPT exception caught: " << e.what() << std::endl;
1612 printf(
"Another exception!!");