Re: [mapnik] Labels cut at tiles edge

622 views
Skip to first unread message

Edward Mac Gillavry

unread,
Aug 14, 2012, 4:08:52 AM8/14/12
to map...@googlegroups.com
Two things come to mind if you have created the Mapnik XML files yourself:
- On the <Map> tag, check out the setting of the "buffer-size" parameter
- On the <ShieldSymbolizer> tag, check out the setting of the "avoid-edges" parameter. The default setting is "false", so you may want to explicitly set this setting to "true".

Also, if you did not touch the Mapnik XML, you may want to check whether generate_tiles.py generates meta-tiles (i.e. multiples of the typical 256*256 images). Using meta tiles reduces the occurence of cut-off labels as it won't happen at the edges of every tile, but only at the edges of the much larger meta-tile. In that case, check out other tiling scripts that do support meta tiling.

Regards,

Edward



On 9 August 2012 15:44, Éric Gillet <fear.h...@gmail.com> wrote:
Helllo,

I'm a OSM contributor, and I wanted to render customised tiles for my (small) town, because the render of openstreetmap.org does not suit me.

I installed mapnik on archlinux, git version installed yesterday, and I'm trying to render the tiles with the generate_tiles python script from here : http://svn.openstreetmap.org/applications/rendering/mapnik/

The rendering works well, apart from the problem mentionned in the title. 1/3 of the labels of the streets are cut off, because of the size of the tile.

Feel free to check out the problem on my server : http://www.linuxw.info/leaflet/

The problem is also visible on rare case on osm.org website, such as this area (check the names on the river) : http://www.openstreetmap.org/?lat=45.78722&lon=4.85696&zoom=17&layers=M

Could you give me some pointers on how to solve this ? I have already increased  the tile buffer size parameter in the generate_tiles, but nothing changes.

Thanks you,

Éric

Reply all
Reply to author
Forward
0 new messages