CLASS and php/mapscript
Luca Casagrande
luca.casagrande at GMAIL.COM
Mon Oct 30 03:03:54 PST 2006
Hi to all!
I am trying to create a new layer using php/mapscript; the problem is for the class section:
this is the mapfile sample i'd like to crete:
CLASS
EXPRESSION "1"
STYLE
COLOR -1 -1 -1
END
END
And this is the mapscript i have written:
$class = ms_newClassObj($layer);
$class->setExpression("'[pixel]' EQ '1'");
$style = ms_newStyleObj($class);
$style->color->setRGB( -1,-1,-1);
Debugging the mapfile, the CLASS it's been created, but not the style of the class.
Thanks very much
Luca
--
Help QGIS development! Make a donation right now at
http://xrl.us/supportqgis
LINUX User #411601
GENTOO-GIS Development Team
jabber: casagrande at jabber.linux.it
More information about the MapServer-users
mailing list