[mapserver-commits] r7710 - trunk/mapserver
svn at osgeo.org
svn at osgeo.org
Thu Jun 19 14:42:10 EDT 2008
Author: Assefa
Date: 2008-06-19 14:42:10 -0400 (Thu, 19 Jun 2008)
New Revision: 7710
Modified:
trunk/mapserver/HISTORY.TXT
trunk/mapserver/mapogcsld.c
Log:
Use possibly the style's width parameter when generating an sld (#1192)
Modified: trunk/mapserver/HISTORY.TXT
===================================================================
--- trunk/mapserver/HISTORY.TXT 2008-06-19 17:05:06 UTC (rev 7709)
+++ trunk/mapserver/HISTORY.TXT 2008-06-19 18:42:10 UTC (rev 7710)
@@ -12,6 +12,8 @@
Current Version (SVN trunk):
----------------------------
+- SLD: Use style's width paramater when generating sld (#1192)
+
Version 5.2.0-beta2 (2008-06-18):
---------------------------------
Modified: trunk/mapserver/mapogcsld.c
===================================================================
--- trunk/mapserver/mapogcsld.c 2008-06-19 17:05:06 UTC (rev 7709)
+++ trunk/mapserver/mapogcsld.c 2008-06-19 18:42:10 UTC (rev 7710)
@@ -3384,6 +3384,7 @@
char *pszSLD = NULL;
char szHexColor[7];
char *pszGraphicSLD = NULL;
+ int nSize;
sprintf(szTmp, "%s\n", "<PolygonSymbolizer>");
pszSLD = msStringConcatenate(pszSLD, szTmp);
@@ -3467,6 +3468,17 @@
szHexColor);
pszSLD = msStringConcatenate(pszSLD, szTmp);
+ nSize = 1;
+ if (psStyle->size > 0)
+ nSize = psStyle->size;
+ else if (psStyle->width > 0)
+ nSize = psStyle->width;
+
+ sprintf(szTmp,
+ "<CssParameter name=\"stroke-width\">%d</CssParameter>\n",
+ nSize);
+ pszSLD = msStringConcatenate(pszSLD, szTmp);
+
sprintf(szTmp, "%s\n", "</Stroke>");
pszSLD = msStringConcatenate(pszSLD, szTmp);
}
More information about the mapserver-commits
mailing list