Different formatting by data in Database in Geoserver

0

I have a DB in pgAdmin and a table with the name: "description" I can only have 2 fields: "car" or "bike", in geoserver I configured it and it works:

<Label>
 <ogc:PropertyName>descricao</ogc:PropertyName>
</Label>
<Font>
 <CssParameter name="font-family">Arial</CssParameter>
 <CssParameter name="font-style">Normal</CssParameter>
 <CssParameter name="font-size">12</CssParameter>
</Font>
<Fill>
 <CssParameter name="fill">#b7d5ff</CssParameter>
</Fill>

But I need two different formatting per given data, that is, if it is "car" one color, if it is "bicycle" another. How can I configure GeoServer?

    
asked by anonymous 01.05.2018 / 00:41

0 answers