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
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.
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