[mapserver-users] Class Expression
Lime, Steve D (DNR)
Steve.Lime at state.mn.us
Mon Mar 26 05:57:34 PDT 2012
You probably need to select "year" as well.
Steve
________________________________________
From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of juliap [japr94 at hotmail.com]
Sent: Sunday, March 25, 2012 10:04 PM
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] Class Expression
Hi All,
I was wondering if it is possible to have expressions within a class when
using sql server 2008.
I have tried the following with no success:
LAYER
NAME "layer2"
TYPE POLYGON
*CLASSITEM "year"*
CONNECTIONTYPE OGR
CONNECTION "MSSQL: .... "
DATA " SELECT geom FROM table1"
CLASS
*EXPRESSION "2002"*
STYLE
COLOR 232 232 232
END
END
END
This does not seem to work. When I use this the other layers in the document
break as well .
I need to have different styles for each different year.
How can I accomplish this?
Thanks in advance,
Julia
--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Class-Expression-tp4655365p4655365.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