Get minimum northing value of a MGRS zone.
| 365 | |
| 366 | // Get minimum northing value of a MGRS zone. |
| 367 | int ZoneToMinNorthing(char zoneLetter) |
| 368 | { |
| 369 | switch (zoneLetter) |
| 370 | { |
| 371 | case 'C': return 1100000; |
| 372 | case 'D': return 2000000; |
| 373 | case 'E': return 2800000; |
| 374 | case 'F': return 3700000; |
| 375 | case 'G': return 4600000; |
| 376 | case 'H': return 5500000; |
| 377 | case 'J': return 6400000; |
| 378 | case 'K': return 7300000; |
| 379 | case 'L': return 8200000; |
| 380 | case 'M': return 9100000; |
| 381 | case 'N': return 0; |
| 382 | case 'P': return 800000; |
| 383 | case 'Q': return 1700000; |
| 384 | case 'R': return 2600000; |
| 385 | case 'S': return 3500000; |
| 386 | case 'T': return 4400000; |
| 387 | case 'U': return 5300000; |
| 388 | case 'V': return 6200000; |
| 389 | case 'W': return 7000000; |
| 390 | case 'X': return 7900000; |
| 391 | default: return kInvalidEastingNorthing; |
| 392 | } |
| 393 | } |
| 394 | } // namespace |
| 395 | |
| 396 | // Convert MGRS parameters to UTM parameters and then use UTM to lat,lon conversion. |