2

Similar to this question: How do I draw the arrow on the line using SLD of Geoserver?

The answer there works, but I need to place the arrow on the midpoint of the line. Alternatively, it could be placed along the line with a certain offset from the start or end point.

The reason is that I am using this for lines that have a symbolized point feature (for manholes in a sewer network) at each end. These points would interfere with arrow at beginning or end of the line.

3

The filter functions currently available to align an arrow with a line are "startAngle" and "endAngle". What you need is a "midAngle" which is not there, but could be coded.

If you can code Java here are some references:

If instead you'd like someone else to do the coding there is a commercial support option too.

2
  • Alternatively it needs a distance along the line function to allow offsets, but I guess that would end up being in pixels at that point – Ian Turton Jan 21 '18 at 13:07
  • @IanTurton there was a fix on master to handle that (make sure these function work against the original geometry). – Andrea Aime Jan 21 '18 at 20:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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