[mapserver-users] create hatch symbol with python mapscript?
Michael Schulz
mandschulz at googlemail.com
Thu Sep 1 08:10:42 PDT 2011
Hi,
I just tried to create a hatch type symbol only thru python mapscript,
but failed. Could someone have a quick look and discover what I might
be missing?
...
hatch = mapscript.symbolObj("hatch")
hatch.type = mapscript.MS_SYMBOL_HATCH
sindex = m.symbolset.appendSymbol(hatch)
stylePoly.symbol = sindex
stylePoly.width = 5
stylePoly.angle = 45
stylePoly.outlinecolor.setRGB(255,0,0)
stylePoly.color.setRGB(0,255,0)
lp.opacity = 50
...
The layer is drawn with a complete fill at 50% opacity in green, but
no hatching.
Thanks, Michael
--
-----------------------------------------------------------
Michael Schulz
More information about the MapServer-users
mailing list