From the mapserver-users mailing list:
I've noticed that there's an implementation difference between
specifying a perpendicular offset in the STYLE section of the Mapfile:
OFFSET 3 -99
and specifying it via an SLD:
The first one, via the Mapfile, does a complex offset calculation
(function msOffsetPolyline() in maputil.c; calls msOffsetCurve() for
The second one, via the SLD, simply does a displacement by the given
value in both the X and Y directions (function msSLDParseLineSymbolizer()
These two produce quite different results.
[Note that the SLD one would be the same as specifying "OFFSET 3 3" in
Is there a reason the two methods are different?
If not, would it be possible to change the SLD one to use the same
calculations as done for the Mapfile?
Fix SLD PerpendicularOffset for lines and labels
use defines instead of 99/-99 for label offsets
Fix SLD PerpendicularOffset for lines and labels (#4801)
also use #defines instead of 99/-99 for label offsets
rebased into branch-6-4 in 1d8b68a, closing