[mapserver-commits] r11172 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Wed Mar 16 11:24:00 EDT 2011


Author: tomkralidis
Date: 2011-03-16 08:23:59 -0700 (Wed, 16 Mar 2011)
New Revision: 11172

Modified:
   trunk/mapserver/mapgml.c
Log:
output ows_title as gml:name in GetFeatureInfo output (#3635)

Modified: trunk/mapserver/mapgml.c
===================================================================
--- trunk/mapserver/mapgml.c	2011-03-16 15:17:17 UTC (rev 11171)
+++ trunk/mapserver/mapgml.c	2011-03-16 15:23:59 UTC (rev 11172)
@@ -1198,6 +1198,11 @@
       msOWSPrintValidateMetadata(stream, &(lp->metadata), namespaces, "layername", OWS_NOERR, "\t<%s>\n", value);
       msFree(value);
 
+      value = (char *) msOWSLookupMetadata(&(lp->metadata), "OM", "title");
+      if (value) {
+        msOWSPrintMetadata(stream, &(lp->metadata), namespaces, "title", OWS_NOERR, "\t<gml:name>%s</gml:name>\n", value);
+      }
+
       /* populate item and group metadata structures */
       itemList = msGMLGetItems(lp, namespaces); 
       constantList = msGMLGetConstants(lp, namespaces);



More information about the mapserver-commits mailing list