[mapguide-commits] r4337 - in trunk/MgDev/Server/src/Services:
Feature Rendering
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Mon Nov 9 17:15:20 EST 2009
Author: brucedechant
Date: 2009-11-09 17:15:19 -0500 (Mon, 09 Nov 2009)
New Revision: 4337
Modified:
trunk/MgDev/Server/src/Services/Feature/ServerFeatureReader.cpp
trunk/MgDev/Server/src/Services/Rendering/FeaturePropRenderer.cpp
Log:
Fix for trac ticket 1146 - Calculation result is not correct when computed property and feature property have same name
http://trac.osgeo.org/mapguide/ticket/1146
Patch submitted on behalf of Romica Dascalescu
Notes:
- Changed to add properties as case sensitive in the property collection
Modified: trunk/MgDev/Server/src/Services/Feature/ServerFeatureReader.cpp
===================================================================
--- trunk/MgDev/Server/src/Services/Feature/ServerFeatureReader.cpp 2009-11-09 22:05:47 UTC (rev 4336)
+++ trunk/MgDev/Server/src/Services/Feature/ServerFeatureReader.cpp 2009-11-09 22:15:19 UTC (rev 4337)
@@ -1083,7 +1083,7 @@
CHECKNULL((MgPropertyDefinitionCollection*)propDefCol, L"MgServerFeatureReader.AddFeature");
//intentionally turn off duplicate checking for better performance
- Ptr<MgPropertyCollection> propCol = new MgPropertyCollection(true, false);
+ Ptr<MgPropertyCollection> propCol = new MgPropertyCollection(true, true);
INT32 cnt = propDefCol->GetCount();
for (INT32 i=0; i < cnt; i++)
Modified: trunk/MgDev/Server/src/Services/Rendering/FeaturePropRenderer.cpp
===================================================================
--- trunk/MgDev/Server/src/Services/Rendering/FeaturePropRenderer.cpp 2009-11-09 22:05:47 UTC (rev 4336)
+++ trunk/MgDev/Server/src/Services/Rendering/FeaturePropRenderer.cpp 2009-11-09 22:15:19 UTC (rev 4337)
@@ -69,7 +69,7 @@
}
*/
- Ptr<MgPropertyCollection> featureProps = new MgPropertyCollection(true, false);
+ Ptr<MgPropertyCollection> featureProps = new MgPropertyCollection(true, true);
//Add the layer name as a property with a special ID
Ptr<MgStringProperty> layerNameProperty = new MgStringProperty(L"_MgLayerName", m_layerInfo->name());
More information about the mapguide-commits
mailing list