[mapserver-commits] r10771 - trunk/mapserver
svn at osgeo.org
svn at osgeo.org
Mon Nov 29 08:27:47 EST 2010
Author: assefa
Date: 2010-11-29 05:27:47 -0800 (Mon, 29 Nov 2010)
New Revision: 10771
Modified:
trunk/mapserver/mapkmlrenderer.cpp
Log:
use ows_name for folder names #3622
Modified: trunk/mapserver/mapkmlrenderer.cpp
===================================================================
--- trunk/mapserver/mapkmlrenderer.cpp 2010-11-29 04:53:49 UTC (rev 10770)
+++ trunk/mapserver/mapkmlrenderer.cpp 2010-11-29 13:27:47 UTC (rev 10771)
@@ -254,13 +254,14 @@
if (!layer)
return NULL;
- if (layer->name && strlen(layer->name) > 0)
- return strdup(layer->name);
name = msLookupHashTable(&layer->metadata, "ows_name");
if (name && strlen(name) > 0)
return strdup(name);
+ if (layer->name && strlen(layer->name) > 0)
+ return strdup(layer->name);
+
sprintf(stmp, "Layer%d",layer->index);
return strdup(stmp);
More information about the mapserver-commits
mailing list