Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

up vote 3 down vote accepted

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

share|improve this answer
    
Thanks a lot. it works... –  thelastray May 9 '12 at 12:30

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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