With the suggestion from Dane, we moved the shapeindex and re-generating it on 
the machine doing the rendering, and this seems to have resolved the problem on 
our current labels. It seems there was an issue with the version of mapnik that 
generated the shapeindex vs the mapnik rendering tiles.

Thanks all.

wr



From: William Rutledge <[email protected]<mailto:[email protected]>>
Date: Thu, 14 Apr 2011 01:18:37 -0500
To: "[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
Subject: Labels being dropped seemingly at random

Has anyone encountered a problem with labels being dropped at random? This is 
now happening to me on two maps, with label shapefiles from separate sources, 
and no good reason they shouldn't be getting rendered.

It so happens that they are both state/province labels on point. One file is 
from nat earth admin1 polys turned into centroids, the newer is a shp I made 
from csv from geonames lat/longs. There are no errors in the mss, and even with 
allow_overlap true, the labels don't get drawn.

The kicker is, for the latter case, it was all labels with a particular value 
in one column not being drawn. At least the most obvious case was thus. I use 
ogr to create a new a shp of those labels previously not being drawn, then 
pointed the same style at both new and old file, and they all worked.  I'm 
convinced I can find more labels in there not being drawn that should.

For what it's worth, this is also happening on a another file on the same map. 
The other file is just of US labels, with verified correct encoding, so no 
strange characters should be throwing this off. And, on another note, of the US 
labels, at least one does get drawn at some zoom, but not others. This could be 
a tile edge, though. I haven't looked that far into it.

My next step is to import the shp into our postgres db, point the style at it, 
and see if anything different happens. Failing that, I may import directly from 
the csv.

Ultimately, this is roughly 100 or so labels in Europe and a handful in the US. 
Anyone ever run across something like this?


Will Rutledge
_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users

Reply via email to