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.

Geoserver 2.1.3

I would like to symbolize a line with a Square but use the <Rotation>45</Rotation> tags to make the symbol look like a diamond.

My sld is below and unfortunately the symbols are not rotated...Is this not possible or is my SLD wrong?



<?xml version="1.0" encoding="ISO-8859-1"?>
<StyledLayerDescriptor version="1.0.0"
xsi:schemaLocation="http://www.opengis.net/sld StyledLayerDescriptor.xsd"
    <Name>line-symbol rotation</Name>
      <Title>line-symbol rotation</Title>      
          <Name>line-symbol rotation</Name>                          
          <LineSymbolizer >    
               <CssParameter name="fill">#009900</CssParameter>
share|improve this question
This style with geometries can be seen here:maps.zgb.de/geoserver/zgb/… –  Robert Buckley Apr 10 '12 at 11:14

1 Answer 1

up vote 1 down vote accepted

I'm not sure the linestroke will support rotation but why not take the diamond from wingdings:


Did you see this presentation: http://demo.geo-solutions.it/share/foss4g2011/gs_styling_aaime_foss4g2011.pdf

share|improve this answer

Your Answer


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.