<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, "Michael Schulz" <<a href="mailto:mandschulz@googlemail.com">mandschulz@googlemail.com</a>> a écrit :<br type="attribution">> Hi,<br>> <br>> I just tried to create a hatch type symbol only thru python mapscript,<br>
> but failed. Could someone have a quick look and discover what I might<br>> be missing?<br>> <br>> ...<br>> hatch = mapscript.symbolObj("hatch")<br>> hatch.type = mapscript.MS_SYMBOL_HATCH<br>
> sindex = m.symbolset.appendSymbol(hatch)<br>> stylePoly.symbol = sindex<br>> stylePoly.width = 5<br>> stylePoly.angle = 45<br>> stylePoly.outlinecolor.setRGB(255,0,0)<br>> stylePoly.color.setRGB(0,255,0)<br>
> lp.opacity = 50<br>> ...<br>> <br>> The layer is drawn with a complete fill at 50% opacity in green, but<br>> no hatching.<br>> <br>> Thanks, Michael<br>> <br>> -- <br>> -----------------------------------------------------------<br>
> Michael Schulz<br>> _______________________________________________<br>> mapserver-users mailing list<br>> <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>> <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
</div>