[mapguide-commits] r7552 - sandbox/adsk/2.4j/Server/src/Services/Feature

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Sun Jun 2 19:21:22 PDT 2013


Author: christinebao
Date: 2013-06-02 19:21:22 -0700 (Sun, 02 Jun 2013)
New Revision: 7552

Modified:
   sandbox/adsk/2.4j/Server/src/Services/Feature/ServerFeatureService.cpp
Log:
#2258: Serve WFS in alternate CS: SRSNAME not respected in getfeature, alternate SRS not available
Fix Linux build error due to std::to_wstring is available since C++11. 

Modified: sandbox/adsk/2.4j/Server/src/Services/Feature/ServerFeatureService.cpp
===================================================================
--- sandbox/adsk/2.4j/Server/src/Services/Feature/ServerFeatureService.cpp	2013-06-03 02:08:42 UTC (rev 7551)
+++ sandbox/adsk/2.4j/Server/src/Services/Feature/ServerFeatureService.cpp	2013-06-03 02:21:22 UTC (rev 7552)
@@ -1965,7 +1965,14 @@
     {
         epsgCode = mapCs->GetEpsgCode();
     }
-    STRING srsName = L"EPSG:" + to_wstring((_Longlong)epsgCode) ;
+    wchar_t wszEpsg[255];
+    #ifdef _WIN32
+    _itow(epsgCode, wszEpsg, 10);
+    #else
+    swprintf(wszEpsg, 255, L"%d", epsgCode);
+    #endif
+    STRING strEpsgCode(wszEpsg);
+    STRING srsName = L"EPSG:" + strEpsgCode;
     flags->SetSrsName(srsName.c_str());
 
     // gml schema location and version



More information about the mapguide-commits mailing list