[mapserver-users] How setting the legend color from mapscript

CzendaZdenda tramtara at seznam.cz
Sun Nov 29 21:47:53 PST 2015


I have tried to change the legend imagecolor variable using python mapscript. 

python:
...
mapobj.legend.status = mapscript.MS_OFF
mapobj.legend.imagecolor = mapscript.colorObj(255, 100, 0, 0)
...

mapfile:
...
LEGEND
    ...
    IMAGECOLOR 255 100 0
    ...
...

When I change a legend.imagecolor to mapscript.colorObj(255,255,255), no
IMAGECOLOR was in mapfile. Probably it's a default colour?

So it seems that imagecolor is supported by python mapscript.

I use mapscript v6.4.1 from OSGeo4W.




--
View this message in context: http://osgeo-org.1560.x6.nabble.com/How-setting-the-legend-color-from-mapscript-tp5233737p5239095.html
Sent from the Mapserver - User mailing list archive at Nabble.com.



More information about the MapServer-users mailing list