3

I have several text layers in GeoServer, which are now shown as point layers with tiny graphic size and with labels (As mentioned in my previous question). All thses labels are, as expected, drawn horizontal. But I want them to be drawn at an angle, available in corresponding database table. I can not use simple rotation property, since it rotates all the labels at a specific angle. How can I accomplish this?

1 Answer 1

5

You can use the Rotation tag together with a PropertyName which lets you draw the label based on an angle specified in a corresponding database table:

<Rotation>
    <ogc:PropertyName>rotation_column</ogc:PropertyName>
</Rotation>

You can see more about rotation and labeling here:

Labeling in GeoServer

0

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.