I need to put a closing arrow on both end and start point of a line, like:      
<--------------------->

The arrows need to follow the rotation of the line. I can do this with the end 
point, just using the rotation of the geom. With the startPoint I need to 
rotate it 180 degrees from the line rotation.

Can I have a math expression in the rotation SLD tag adding or subtracting the 
two rotation tags below

1.
              <Rotation>
                <ogc:Function name="startAngle">
                  <ogc:PropertyName>the_geom</ogc:PropertyName>
                </ogc:Function>
              </Rotation>
2.
              <Rotation>180</Rotation>

Complete rule for the startPoint arrow that's need rotation:

 <Rule>
          <PointSymbolizer>
            <Geometry>
              <ogc:Function name="startPoint">
                <ogc:PropertyName>the_geom</ogc:PropertyName>
              </ogc:Function>
            </Geometry>
            <Graphic>
              <Mark>
                <WellKnownName>shape://oarrow</WellKnownName>
                <Fill/>
                <Stroke>
                  <CssParameter name="stroke">#000000</CssParameter>
                </Stroke>
              </Mark>
              <Size>20</Size>
              <Rotation>
                <ogc:Function name="startAngle">
                  <ogc:PropertyName>the_geom</ogc:PropertyName>
                </ogc:Function>
               <!-- need expression to add 180 -->
              </Rotation>
            </Graphic>
          </PointSymbolizer>
</Rule>

Best Regards

Jakob Lanstorp
IT-Consulent

[cid:[email protected]]

<<inline: image001.jpg>>

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to