PerpendicularOffset swaps sides if line of the angle exceeds a limit
--------------------------------------------------------------------
Key: GEOS-4020
URL: http://jira.codehaus.org/browse/GEOS-4020
Project: GeoServer
Issue Type: Bug
Components: Global
Affects Versions: 2.0.2
Reporter: Edward Mac Gillavry
Assignee: Andrea Aime
Attachments: example_sld.xml, forceLeftToRight_false.png, forceLeftToRight_true.png
Trying to label the borders on the map with the names of the administrative subdivisions following the borders (a la Google Maps). In PostGIS, I made sure all borders are lines and are being drawn in the same direction (ST_ForceRHR). In my SLD, I defined a negative PerpendicularOffset in my LinePlacement to have all labels drawn to the right-hand side of the line, i.e. within the borders (see attachment example_sld.xml).
On the map, I find that the labels swap from the inside of the borders to the outside when the angle of the line exceeds a certain threshold. In other words, despite the negative value of the PerpendicularOffset, the labels are drawn to the left-hand side of the line (see attachment forceLeftToRight_true.png). Throwing in the VendorOption "forceLeftoRight=false", the labels do stay inside the borders and the PerpendicularOffset is interpreted correctly, but the labels show up upside down (see attachment forceLeftToRight_false.png).
For your geographic bearings: three provinces in the Netherlands come together. Flevoland is to the North, Noord-Holland to the West and Utrecht to the South.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira