[mapguide-commits] r5304 - trunk/MgDev/Web/src/HttpHandler
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Wed Oct 20 09:38:42 EDT 2010
Author: liuar
Date: 2010-10-20 06:38:42 -0700 (Wed, 20 Oct 2010)
New Revision: 5304
Modified:
trunk/MgDev/Web/src/HttpHandler/WfsFeatureDefinitions.cpp
Log:
Ticket 1480 Failed to add multi CRSs for WFS Server
This defect is caused by the keyword updating from 1.0.0 to 1.1.0.
In 1.0.0, WFS uses keyword "PrimarySRS" to define the default SRS but it changed to "DefaultSRS" in 1.1.0.
For the backward compatibility, this submission keeps both "PrimarySRS" and "DefaultSRS" in the !WfsFeatureDefinitions.
Modified: trunk/MgDev/Web/src/HttpHandler/WfsFeatureDefinitions.cpp
===================================================================
--- trunk/MgDev/Web/src/HttpHandler/WfsFeatureDefinitions.cpp 2010-10-20 12:14:34 UTC (rev 5303)
+++ trunk/MgDev/Web/src/HttpHandler/WfsFeatureDefinitions.cpp 2010-10-20 13:38:42 UTC (rev 5304)
@@ -243,6 +243,11 @@
{
isPublished = true;
}
+ // WFS 1.1.0 replaces PrimarySRS with DefaultSRS
+ else if(SZ_EQ(sDefinitionName.c_str(), _("Feature.PrimarySRS")))
+ {
+ AddDefinition(oStream, _("Feature.DefaultSRS"), sValue.c_str());
+ }
}
}
}
More information about the mapguide-commits
mailing list