TransWikia.com

Size of points determined by an attribute value in SLD in Geoserver

Geographic Information Systems Asked by ConcreteJungle on June 24, 2021

I have a point layer with an attribute field containing decimal values. In Qgis, with the help of data defined overide i have managed to make the size of a point dependent on the value of a field (see picture below).

enter image description here

Now i want to emplement this in Geoserver through SLD: Is there a way to simply "call" the value of an object from a specific attribute field and bypass it to the <se:Size></se:Size> element?

Meaning if the value within a specified attribute field is 70,5 for for a point-object the value of <se:Size></se:Size> will be 70,5.

Thanks,

One Answer

You can use any expression inside the size tag - in this case you want to use a PropertyName expression so something like:

<se:Size><ogc:PropertyName>myAttr</ogc:PropertyName></se:Size>

Answered by Ian Turton on June 24, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP