<div dir="ltr"><div><div><div>Hello,<br><br></div>I am testing MapServer generating SLD file. I then import them into GeoServer and check the difference. I try to change the source code of MapServer (add propertyName for label, support outline(width|color), support some vendor parameter, better support for label with halo, support expression list).<br>
<br></div>At this moment I am improving my seconde PR thanks to Thomas comment [1] but I am stuck with a small issue:<br><br></div>I have this kind of mapfile:<br>        STYLE<br>            WIDTH 0.5<br>            OUTLINEWIDTH 2<br>
            OUTLINECOLOR 0 0 0<br>            #COLOR "#aaaaaa"<br>        END<br clear="all"><div><div><div><div><br></div><div>The SLD generated for the WIDTH/COLOR part is:<br><se:Stroke><br>  <se:SvgParameter name="stroke">#</se:SvgParameter><br>
  <se:SvgParameter name="stroke-width">0.50</se:SvgParameter><br></se:Stroke><br><br></div><div>And my source code is:<br><br>if ((psStyle->outlinewidth > 0 && &psStyle->outlinecolor) && (psStyle->width >= 0 && &psStyle->color))<br>
<br></div><div>This test is not working properly as psStyle->color exists but doesn't contains anything but '#' symbol.<br><br></div><div>Any idea how to test if a color parameter has been defined in a mapfile?<br>
<br>Thanks,<br><br>Y.<br>[1] <a href="https://github.com/mapserver/mapserver/pull/4922">https://github.com/mapserver/mapserver/pull/4922</a><br></div><div>-- <br>Responsable Formation et Support<br>Camptocamp France SAS<br>
Savoie Technolac, BP 352<br>73377 Le Bourget du Lac, Cedex<br><br>Tel (France) : +33 4 79 26 57 98<br>Tel (Suisse) : 021 619 10 43<br>Mob. : +33 6 18 75 42 21<br>Fax : 04 79 70 15 81<br><br>Mail : <a href="mailto:yves.jacolin@camptocamp.com" target="_blank">yves.jacolin@camptocamp.com</a><br>
<a href="http://www.camptocamp.com" target="_blank">http://www.camptocamp.com</a>
</div></div></div></div></div>