[Mapserver-users] 3.7 python/mapscript, styles
Jerritt Collord
collord@linuxfund.org
Fri, 18 Apr 2003 20:03:07 -0700
Hi all.
I'm plugging away at a python/mapscript project and can't find reference
to how to manipulate styles. I'm trying to change the color that a layer
renders as.
(...snip... load a mapfile... thislayname is a layer defined there that
has one class which contains one style...)
thislay = mymap.getLayerByName(thislayname)
thisclass = mapscript.classObj(thislay)
thiscolor = mapscript.colorObj()
thiscolor.red,thiscolor.green,thiscolor.blue = (red,green,blue)
thisclass.numstyles=1
thisclass.styles.color = thiscolor
(...)
But I can't get the color of the features to change.
Any tips or example code out there?
Thanks,
Jerritt
_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users