I'm new with geoserver so my question can be silly.
I'm trying to style a geoserver layer. The features come from a postgis table. The feature are all lines. I'd like to style them based on attributes (of the table). I can do that. I created rules that say "if myfield = value1 draw a red line, if myfield = value2 draw a blue line, ..." and so on.
I'd like to write a default style for the line: "if none of the above rules is true than draw the line yellow".
I didn't find in the geoserver SLD documentation anything to accomplish that. Or my way of reasoning is different from that of SLD.
In the docs there's a UserStyle isDefault property but I think it's not what I'm looking for.
I googled too to no avail.
Any suggestion?
Thank you maxx
أكثر...
I'm trying to style a geoserver layer. The features come from a postgis table. The feature are all lines. I'd like to style them based on attributes (of the table). I can do that. I created rules that say "if myfield = value1 draw a red line, if myfield = value2 draw a blue line, ..." and so on.
I'd like to write a default style for the line: "if none of the above rules is true than draw the line yellow".
I didn't find in the geoserver SLD documentation anything to accomplish that. Or my way of reasoning is different from that of SLD.
In the docs there's a UserStyle isDefault property but I think it's not what I'm looking for.
I googled too to no avail.
Any suggestion?
Thank you maxx
أكثر...