Hi,
wanted to bring up a question about text symbolizers and
vendor options.

In text symbolizers the label placement defines how a label
is to be drawn.

The PointPlacement, default if no placement is set, has to
place the label in the "middle" of the geometry, with horizontal
orientation (unless a rotation is supplied of course).

The LinePlacement works only with lines and asks the label
to be placed "along the line", without specifying if
tangent or curved. The curved bit is added by the VendorOption
followLine.

Now, what poeple are getting confused about is that they expect
the labels to be curved and follow lines by just specifying
the vendor option, without asking for a LinePlacement.
Which really means, they think the vendor option fully overrides
the placement definition. In a text symbolizer there is no
difference between telling no placement or explicitly asking
for a point placement, as that is the default.

At the moment when mixing point placement and curved labels
some (the really curved ones) are drawn along the line,
others (the one that end up being straight anyways) are
drawn horizonally. It's a bug. The problem is, where?

Option 1: the code should just ignore the vendor option
in that case, as no line placement was asked for to
start with
Option 2: the code should throw an exception telling
the user to make a decision, point placement or following
the lines?
Option 3: the code should take the vendor option as
an override and forget about the point placement, even
if it was specified explicitly (the code that draws
the labels has no way to tell if the placement was
asked explicitly or just defaulted).

I like option 2. What other people think?

Cheers
Andrea

-- 
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to