[mapguide-commits] r8581 - trunk/MgDev/Common/MapGuideCommon/MapLayer

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Tue Mar 17 03:46:00 PDT 2015


Author: jng
Date: 2015-03-17 03:46:00 -0700 (Tue, 17 Mar 2015)
New Revision: 8581

Modified:
   trunk/MgDev/Common/MapGuideCommon/MapLayer/Map.cpp
Log:
#2550: RFC 140 errata: The actual underlying coordinate system for XYZ tile sets is WGS84.PseudoMercator, not LL84

WGS84.PseudoMercator XYZ tiles have noticeably less visual distortion than their LL84 counterparts. Also thinking it logically through, WGS84.PseudoMercator has to be the correct coordinate system because this is the coordinate system that vector data must be in, in order to line up with OpenStreetMap and friends, whose coordinate systems are ... WGS84.PseudoMercator

Modified: trunk/MgDev/Common/MapGuideCommon/MapLayer/Map.cpp
===================================================================
--- trunk/MgDev/Common/MapGuideCommon/MapLayer/Map.cpp	2015-03-16 02:54:35 UTC (rev 8580)
+++ trunk/MgDev/Common/MapGuideCommon/MapLayer/Map.cpp	2015-03-17 10:46:00 UTC (rev 8581)
@@ -794,9 +794,9 @@
     }
     else if (storeParams->GetTileProvider() == MG_TILE_PROVIDER_XYZ)
     {
-        //XYZ is always LL84
+        //XYZ is always WGS84.PseudoMercator
         Ptr<MgCoordinateSystemFactory> csFactory = new MgCoordinateSystemFactory();
-        return csFactory->ConvertCoordinateSystemCodeToWkt(L"LL84"); //NOXLATE
+        return csFactory->ConvertCoordinateSystemCodeToWkt(L"WGS84.PseudoMercator"); //NOXLATE
     }
     if (strict)
     {



More information about the mapguide-commits mailing list