On Apr 18, 2011, at 8:55 AM, William A. Rutledge wrote:

> I spoke too soon. Still not resolved. This is on a file with no shapeindex
> at all. I moved shp data into postgres, which is working fine for all
> labels all zooms.

Good news postgres works.

> Need to try one final thing, though: there is a label
> point at 90S 0, South Pole. Postgres didn't like it.

Ah, ha. Yes, then this is then likely the classic issue of coordinates outside 
the valid bounds of spherical mercator, which is very common a problem with 
natural earth data.

If you want to keep the data in shapefile format then you should clip the data 
using GDAL/OGR's -clipsrc flag available in GDAL >= 1.7 and ideally also 
reproject to spherical mercator (so that any potential transform failures after 
clipping are visible during ogr2ogr reprojection). See 
http://trac.mapnik.org/wiki/Troubleshooting for more details. That wiki page 
focuses on invalid longitude values but the same commands can fix invalid 
latitude values.

Also, note that last week I added fixes to Mapnik2 that will allow better 
clipping in Mapnik (but clipping data using GDAL/OGR ahead of time is still the 
optimal fix): 
https://lists.berlios.de/pipermail/mapnik-devel/2011-April/001372.html


> It's kinda in the
> middle of the shp dbf, and labels showing up on both sides, so chances are
> that it is causing this isn't likely, but I'd like to chase it down. It's
> not causing renderd to crash, but I want to remove it just the same to try
> it out.
> 
> Will Rutledge
> 
> 
> On 4/16/11 9:51 PM, "Nino Walker" <[email protected]> wrote:
> 
>> Oh... that's nasty!
>> 
>> On Sat, Apr 16, 2011 at 3:00 AM,  <[email protected]>
>> wrote:
>>> Send Mapnik-users mailing list submissions to
>>>      [email protected]
>>> 
>>> To subscribe or unsubscribe via the World Wide Web, visit
>>>      https://lists.berlios.de/mailman/listinfo/mapnik-users
>>> or, via email, send a message with subject or body 'help' to
>>>      [email protected]
>>> 
>>> You can reach the person managing the list at
>>>      [email protected]
>>> 
>>> When replying, please edit your Subject line so it is more specific
>>> than "Re: Contents of Mapnik-users digest..."
>>> 
>>> Today's Topics:
>>> 
>>> 1. Re: Labels being dropped seemingly at random (William A. Rutledge)
>>> 
>>> 
>>> ---------- Forwarded message ----------
>>> From: "William A. Rutledge" <[email protected]>
>>> To: "[email protected]" <[email protected]>
>>> Date: Fri, 15 Apr 2011 16:03:26 -0500
>>> Subject: Re: [Mapnik-users] Labels being dropped seemingly at random
>>> 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
>>> 
>> 
> 
> _______________________________________________
> Mapnik-users mailing list
> [email protected]
> https://lists.berlios.de/mailman/listinfo/mapnik-users

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

Reply via email to