<p>You should also set the style size which is the spacing between hatches. It should be larger than the style width.<br>
Thomas</p>
<div class="gmail_quote">Le 1 sept. 2011 17:11, &quot;Michael Schulz&quot; &lt;<a href="mailto:mandschulz@googlemail.com">mandschulz@googlemail.com</a>&gt; a écrit :<br type="attribution">&gt; Hi,<br>&gt; <br>&gt; I just tried to create a hatch type symbol only thru python mapscript,<br>
&gt; but failed. Could someone have a quick look and discover what I might<br>&gt; be missing?<br>&gt; <br>&gt; ...<br>&gt; hatch = mapscript.symbolObj(&quot;hatch&quot;)<br>&gt; hatch.type = mapscript.MS_SYMBOL_HATCH<br>
&gt; sindex = m.symbolset.appendSymbol(hatch)<br>&gt; stylePoly.symbol = sindex<br>&gt; stylePoly.width = 5<br>&gt; stylePoly.angle = 45<br>&gt; stylePoly.outlinecolor.setRGB(255,0,0)<br>&gt; stylePoly.color.setRGB(0,255,0)<br>
&gt; lp.opacity = 50<br>&gt; ...<br>&gt; <br>&gt; The layer is drawn with a complete fill at 50% opacity in green, but<br>&gt; no hatching.<br>&gt; <br>&gt; Thanks, Michael<br>&gt; <br>&gt; -- <br>&gt; -----------------------------------------------------------<br>
&gt; Michael Schulz<br>&gt; _______________________________________________<br>&gt; mapserver-users mailing list<br>&gt; <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>&gt; <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
</div>