[mapserver-commits] r9913 - trunk/mapserver
svn at osgeo.org
svn at osgeo.org
Wed Mar 3 12:55:28 EST 2010
Author: assefa
Date: 2010-03-03 12:55:28 -0500 (Wed, 03 Mar 2010)
New Revision: 9913
Modified:
trunk/mapserver/mapogcsld.c
Log:
Fix column type detecting for SLD filters #3052
Modified: trunk/mapserver/mapogcsld.c
===================================================================
--- trunk/mapserver/mapogcsld.c 2010-03-03 17:36:54 UTC (rev 9912)
+++ trunk/mapserver/mapogcsld.c 2010-03-03 17:55:28 UTC (rev 9913)
@@ -723,8 +723,8 @@
layerObj *psCurrentLayer = NULL;
const char *pszWmsName=NULL;
int j=0;
+ const char *key=NULL;
-
if (!psRoot || !psLayer)
return MS_FAILURE;
@@ -817,7 +817,18 @@
}
if (j < psLayer->map->numlayers)
{
-
+ /*make sure that the tmp layer has all the metadata that
+ the orinal layer has, allowing to do parsing for
+ such things as gml_attribute_type #3052*/
+ while (1)
+ {
+ key = msNextKeyFromHashTable(&psCurrentLayer->metadata, key);
+ if (!key)
+ break;
+ else
+ msInsertHashTable(&psLayer->metadata, key,
+ msLookupHashTable(&psCurrentLayer->metadata, key));
+ }
FLTPreParseFilterForAlias(psNode, psLayer->map, j, "G");
}
More information about the mapserver-commits
mailing list