[mapguide-commits] r7551 - trunk/MgDev/Server/src/Services/Feature
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Sun Jun 2 19:08:42 PDT 2013
Author: christinebao
Date: 2013-06-02 19:08:42 -0700 (Sun, 02 Jun 2013)
New Revision: 7551
Modified:
trunk/MgDev/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: trunk/MgDev/Server/src/Services/Feature/ServerFeatureService.cpp
===================================================================
--- trunk/MgDev/Server/src/Services/Feature/ServerFeatureService.cpp 2013-06-02 12:49:36 UTC (rev 7550)
+++ trunk/MgDev/Server/src/Services/Feature/ServerFeatureService.cpp 2013-06-03 02:08:42 UTC (rev 7551)
@@ -1970,7 +1970,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