In GeoServer I have a layer created from a database table with the following structure:
tableX
(id
,name
,typeid
,description
,geom
)
The geom
field is always a polygon. I also have created 3 different styles in GeoServer, basically 3 kind of polygons with different colours.
What I'm trying to do is to serve one WMS layer with different styles, filtering them by typeid
field. So, if:
typeid = 1
I use the first style (Green polygon)typeid = 2
I use the second style (Blue polygon)typeid = 3
I use the third style (Red polygon)
Is this possible in GeoServer?