[Geoserver-devel] [JIRA] (GEOS-7555) PerpendicularOffset (LineSymbolizer) looks not behaving the same as PerpendicularOffset (TextSymbolizer)

Go Sato created an issue

GeoServer / ImprovementGEOS-7555

PerpendicularOffset (LineSymbolizer) looks not behaving the same as PerpendicularOffset (TextSymbolizer)

Issue Type:

ImprovementImprovement

Affects Versions:

2.9-RC1

Assignee:

Unassigned

Components:

WMS

Created:

24/May/16 7:08 PM

Environment:

Amazon Linux (Linux version 4.1.17-22.30.amzn1.x86_64 (mockbuild@anonymised.com))
Oracle JRE 1.8.0 Update 92
Tomcat 7.0.68

Priority:

LowestLowest

Reporter:

Go Sato

I have recently started using GeoServer 2.9 RC1 to present a traffic network using the shiny PerpendicularOffset feature of LineSymbolizer.

Each link (road section) in the network dataset has two features, identical in shape, opposite in direction. I am using perpendicularoffset to split the lines and present the traffic flows in a left-side traffic system (Vehicles run on the left side of the roads in my country).

The following documatation says the parameter shifts the lines to the left side.
http://docs.geoserver.org/stable/en/user/styling/sld-cookbook/lines.html
(Offset line section)
http://docs.geoserver.org/latest/en/user/extensions/css/properties.html
(stroke-offset section)

However, it seems to me that when positive perpendicular offset was given, the lines are shifted to the right side of the roads and negative shifts them to the left side. (right means the right when viewed from the startpoint towards the endpoint of each line)

So, if I set a linesymbolizer with perpendicularoffset = 5 and then apply a textsymbolizer with forceLeftToRight = false and perpendicularoffset = 10 to the same dataset, the lines come to the right of the roads and the labels left. I had to set the linesymbolizer’s perpendicularoffset to -5 to make both come on the same side of the roads. (ie. positive and negative in perpendicularoffset behaves differently between linesymbolizer and textsymbolizer)

I think the documentation is a bit confusing. Perhaps more accurate wording?

Kind regards,

Add Comment

Add Comment

This message was sent by Atlassian JIRA (v1000.5.2#72002-sha1:b4422fe)

Atlassian logo