[mapguide-commits] r4315 - trunk/MgDev/Common/CoordinateSystem

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Fri Oct 23 17:50:53 EDT 2009


Author: NormOlsen
Date: 2009-10-23 17:50:52 -0400 (Fri, 23 Oct 2009)
New Revision: 4315

Modified:
   trunk/MgDev/Common/CoordinateSystem/CoordSysMgrsZone.cpp
Log:
Fix a minor glitch in time for the MAP Marathon.


The GetRegion function of the CoordinateSystemMgrsZone object was returning one more region than was necessary.  This confused the host application at times.

Modified: trunk/MgDev/Common/CoordinateSystem/CoordSysMgrsZone.cpp
===================================================================
--- trunk/MgDev/Common/CoordinateSystem/CoordSysMgrsZone.cpp	2009-10-22 23:33:35 UTC (rev 4314)
+++ trunk/MgDev/Common/CoordinateSystem/CoordSysMgrsZone.cpp	2009-10-23 21:50:52 UTC (rev 4315)
@@ -163,12 +163,12 @@
             // north latitude, the northernmost band (Band X) is
             // 12 degrees high (72 to 84 degrees latitude).  So there
             // is no band beginning at 80.
-            if (lastLat > 72)
+            if (lastLat > 80)
             {
-                lastLat = 72;
+                lastLat = 80;
             }
 
-            for (latIdx = firstLat;latIdx <= lastLat;latIdx += 8)
+            for (latIdx = firstLat;latIdx < lastLat;latIdx += 8)
             {
                 // Calculate the envelope of the normal UTM zone.
                 latMin = static_cast<double>(latIdx);



More information about the mapguide-commits mailing list