[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Maposmatic-dev] Questions on advanced text rendering using Mapnik2

From: David MENTRE
Subject: [Maposmatic-dev] Questions on advanced text rendering using Mapnik2
Date: Sun, 25 Mar 2012 13:15:44 +0200


I am part of development team. In our current
development version, we are using Mapnik 2.0 to make ready-to-print
maps of cities with street index. We are using the Python interface of

We have a long standing bug in MapOSMatic (since 2009, if the street name
is longer than the size of the street (on the generated map), the name
is not displayed. We would like to solve this bug through advance text
placement of Mapnik2.

More precisely, there are to cases we would like to make using
Mapnik2, please look at attached annotated map.

Like in case 1, we would like to split the long name over several
lines. How can we do this with Mapnik2? Any pointer to relevant
documentation and examples?

We also would like to reproduce case 2, were the long name is attached
through a line to the relevant street. Once again, is it possible to
do that with Mapnik2? Any pointer to documentation and examples?

In both cases, how should we proceed? Through the style sheet? Through
the Python interface?

Many thanks in advance for any help,
Best regards,

Attachment: annotated-map.png
Description: PNG image

reply via email to

[Prev in Thread] Current Thread [Next in Thread]