mapnik-org/mapnik — Issue #738: Point placement for TextSymbolizer on line feature broken
Author: artemp
Created: 2011-10-11 08:09:57+00:00
State: open
Labels: Core_Library

When using (or omitting placement, as point is the default) on a line feature, mapnik2 places the label in the centroid of a hull polygon of that line, instead of at the midpoint of the line like previous versions used to do.

The old linesymbolizer midpoint code still exists as middle_point() in include/mapnik/geometry.hpp, but isn't used anymore.

Can we revert this to the old behaviour, please?

Example of current mapnik2 behaviour (line highlighted in blue):
[[Image(740-broken-point-placement.png)]]

Previous mapnik behaviour:
[[Image(740-correct-point-placement.png)]]

Note: 'L7055' is the relevant label.

Symbolizer used:

Live osm.org data:
http://www.openstreetmap.org/?way=96459179