0

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.

1 Answer 1

4

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>
2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.