<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'><div style="text-align: left;">Hi Guys,<br><br>I'm relatively new to Mapserver and MapScript, and am having some issues with the applySLD(String, String) function.&nbsp; I am writing a small Java utility that reads a WMC context file with GML and SLD and returns an image.&nbsp; I can read the context and GML just fine, but when i call the apply SLD function it doesn't seem to recognize the &lt;Fill&gt; tag.&nbsp; The &lt;Stroke&gt; tag gets styled correctly, leaving a properly style border and a grey fill on all my polygons.&nbsp; As an example, here's the SLD i'm passing through the function:<br><br>&lt;StyledLayerDescriptor version="1.0.0"&gt;<br>&nbsp;&nbsp; &lt;NamedLayer&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Name&gt;inline_geometry&lt;/Name&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;UserStyle&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Title&gt;xxx&lt;/Title&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;FeatureTypeStyle&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Rule&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;PolygonSymbolizer&gt;<br><span style="font-weight: bold;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Fill&gt;</span><br style="font-weight: bold;"><span style="font-weight: bold;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;CssParamater name="fill"&gt;#ee9900&lt;/CssParamater&gt;</span><br style="font-weight: bold;"><span style="font-weight: bold;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;CssParameter name="fill-opacity"&gt;0.4&lt;/CssParameter&gt;</span><br style="font-weight: bold;"><span style="font-weight: bold;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/Fill&gt;</span><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Stroke&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;CssParameter name="stroke"&gt;#ee9900&lt;/CssParameter&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;CssParameter name="stroke-opacity"&gt;1&lt;/CssParameter&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;CssParameter name="stroke-width"&gt;2&lt;/CssParameter&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/Stroke&gt;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/PolygonSymbolizer&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/Rule&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/FeatureTypeStyle&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/UserStyle&gt;<br>&nbsp;&nbsp; &lt;/NamedLayer&gt;<br>&lt;/StyledLayerDescriptor&gt;<br><br>I've attached the resulting image, and while I expect there to be a dark orange border with a lighter orange fill I'm clearly not getting that.<br><br>Cheers,<br><br>Bill Zborowski<br><br><br><br><br></div><br /><hr />Get your information fix on your phone. With MSN Mobile you get regular news, sports and  finance updates. <a href='http://www.msnmobile.ca' target='_new'>Try it today!</a></body>
</html>