Re: [mapserver-users] Question about python mapscript and point style.

2019-11-23 Thread Seth G
Hi, The following example works for me - 2 styles are in the output Mapfile. Maybe there is an issue elsewhere? Is there a Python error, or is the output not what you are expecting? import mapscript m = mapscript.fromstring(""" MAP LAYER NAME "test" TYPE POINT CLASS NAME "0" STYLE COLOR

Re: [mapserver-users] Question about python mapscript and point style.

2019-11-22 Thread Seth G
Hi Vladimir, Could you try the following syntax? new_style = new mapscript.styleObj() new_style.symbolname = 'circle' new_style.size = 10 the_class.insertStyle(new_style) Also make sure your variables aren't overriding the class names - e.g. maybe use different variable names than classObj.

[mapserver-users] Question about python mapscript and point style.

2019-11-15 Thread Vladimir
Hi all!   I unsuccessfully try to style ‘Point’ layer with following code: (first)     style = mapscript.styleObj(classObj)     style.symbolname = 'circle'     style.size = 10     style.color = mapscript.colorObj(255, 0, 0)   No error, no picture as result of using this method. But similar approac