LinePlacement for labeling ignored
----------------------------------
Key: GEOS-416
URL: http://jira.codehaus.org/browse/GEOS-416
Project: GeoServer
Type: Bug
Reporter: dblasby
Assigned to: dblasby
Fix For: 1.3.0
(this is a geotools issue)
I was attempting to write documentation for label placement (plus fix all the inconsistencies with the spec), and I noticed some problems with the SLDStyleFactory and TextStyle2D.
It turns out the SLDStyleFactory is actually trying to do [poor] label placement (see around line 570)! This also results in a loss of information if you're using a <LinePlacement> element in your SLD.
1. remove the placement code from SLDStyleFactory!
2. get rid of the "AbsoluteLineDisplacement" stuff and replace it with something that represents <PointPlacement>/<LinePlacement> elements in the TextSymbolizer.
The current implementation seems to try to convert a <LinePlacement> and a line into a <PointPlacement> (and setting the AbsoluteLineDisplacement flag)!! This should be done by the real labeling code.
This change could affect the j2d renderer as it appears to use the "AbsoluteLineDisplacement" flag.
dave
--
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