[mapserver-commits] r8742 - trunk/mapserver
svn at osgeo.org
svn at osgeo.org
Mon Mar 9 17:05:21 EDT 2009
Author: tomkralidis
Date: 2009-03-09 17:05:21 -0400 (Mon, 09 Mar 2009)
New Revision: 8742
Modified:
trunk/mapserver/mapwms.c
Log:
print if sld_enabled != false (#1395)
Modified: trunk/mapserver/mapwms.c
===================================================================
--- trunk/mapserver/mapwms.c 2009-03-09 21:04:52 UTC (rev 8741)
+++ trunk/mapserver/mapwms.c 2009-03-09 21:05:21 UTC (rev 8742)
@@ -2203,11 +2203,14 @@
msIO_printf(" <VendorSpecificCapabilities />\n"); /* nothing yet */
/* SLD support */
- if (nVersion >= OWS_1_0_7) {
+ if (strcasecmp(sldenabled, "true") == 0)
+ {
+ if (nVersion >= OWS_1_0_7) {
if (nVersion >= OWS_1_3_0)
msIO_printf(" <sld:UserDefinedSymbolization SupportSLD=\"1\" UserLayer=\"0\" UserStyle=\"1\" RemoteWFS=\"0\" InlineFeature=\"0\" RemoteWCS=\"0\"/>\n");
else
msIO_printf(" <UserDefinedSymbolization SupportSLD=\"1\" UserLayer=\"0\" UserStyle=\"1\" RemoteWFS=\"0\"/>\n");
+ }
}
/* Top-level layer with map extents and SRS, encloses all map layers */
More information about the mapserver-commits
mailing list