artemp/mapnik — Issue #136: min_distance for ShieldSymbolizer not respected when rendering with Cairo to PDF/SVG
Author: artemp
Created: 2011-10-11 15:59:19+00:00
State: open
Labels: Cairo_Renderer

Adding shields (ShieldSymbolizer) to lines using the parameter "min_distance" does not work as expected when rendering to SVG or PDF using Cairo.

Rendering the same data to PNG (with AGG) using the same styles, the map looks as expected, and changes to "min_distance" result in changes in the map. When rendering to SVG it seems that every different line gets its own shield, not taking into account the distance to other shields with the same text (which seems to be the usual behaviour). Thus, when there are e.g. roads consisting of a lot of lines, each gets its own shield, and they can even overlap. Also, changing "min_distance" does not seem to have any effect.