MCPcopy Create free account
hub / github.com/comaps/comaps / LatitudeToZoneLetter

Function LatitudeToZoneLetter

libs/platform/utm_mgrs_utils.cpp:84–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82}
83
84char LatitudeToZoneLetter(double lat)
85{
86 if (-80.0 <= lat && lat <= 84.0)
87 {
88 auto const index = static_cast<size_t>(lat + 80.0) >> 3;
89 ASSERT_LESS(index, kZoneLetters.size(), ());
90 return kZoneLetters[index];
91 }
92 return 0;
93}
94
95int ZoneNumberToCentralLon(int zoneNumber)
96{

Callers 2

LatLonToUtmFunction · 0.85
FormatMGRSFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected