[MAPSERVER-USERS] How to get class expression used in layer in themapfile

Christopher Condit condit at sdsc.edu
Fri May 2 06:57:06 PDT 2008


Here's an example in C# (it's from an older project, but I think it
should still show what to do):

classObj cls = new classObj(myLayerObj);
cls.name = "Test Class";
sls.setExpression("count = 5");					
styleObj sty = new styleObj(cls);				
sty.color = new colorObj(255, 255, 0, 1);				
sty.outlinecolor = new colorObj(0, 0, 0, 2);

sty.symbolname = "circle";
sty.size = 8;

-Chris

-----Original Message-----
From: mapserver-users-bounces at lists.osgeo.org
[mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of yatendra
Sent: Friday, May 02, 2008 07:14
To: mapserver-users at lists.osgeo.org
Subject: [MAPSERVER-USERS] How to get class expression used in layer in
themapfile


Hi friends,
 I am using asp.net and mapscript_charp.dll.
I have used different classes in a layer in my map file to give
differrent
color to each feature.
Now by using asp.net mapscript i am trying to get the expression i used
in
layer declaration in map file.
I have created a class object. 
assigned layername used in mapobject.
now i got stucked.
How to get classes in a layer and how to use different functions of
class
objects....
Please giude me if anyone have knowladge about this issue.
php script will do...
I need only idea..
Thanks regards

-- 
View this message in context:
http://www.nabble.com/How-to-get-class-expression-used-in-layer-in-the-m
apfile-tp17014924p17014924.html
Sent from the Mapserver - User mailing list archive at Nabble.com.

_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users



More information about the MapServer-users mailing list