I've been having the same problem as Tom, and I can confirm that  
excluding Antarctica seems to fix the problem.

-mike.

On Jun 29, 2008, at 9:22 PM, Dane Springmeyer wrote:

> Hi Tom,
>
> My query to Bjørn on his blog (that you referenced) relates
> specifically to his simplified version of the world shapefile. I can
> reproject it without trouble but multipolygons that cross the dateline
> are interpreted as taking the long way around the earth so you get
> some terrible looking shapes in a few places.
>
> Luckily, I think your problem is much simpler and solvable. As far as
> I can tell there is just one big invalid polygon in the
> TM_WORLD_BORDERS-0.2.shp (the non-simplified download) that trips up
> even GDAL/OGR when attempting to reproject to Google Mercator.
>
> If I watch the debug output of mapnik when processing the shapefile I
> see the line:
> ' total shapes read=127'
> which should be '246'
>
> I can run ogrinfo on the shapefile to see how many multipolygon
> features should be processed:
>
> spring$ ogrinfo TM_WORLD_BORDERS-0.2.shp -so -al | grep Count
> Feature Count: 246
>
> So then I try reprojecting the shapefile to google mercator using
> ogr2ogr, but I get this:
>
> spring$ ogr2ogr -t_srs EPSG:900913 tm_merc.shp  
> TM_WORLD_BORDERS-0.2.shp
> Failed to transform feature 144.
> ERROR 1: Terminating translation prematurely after failed
>
> That feature is the Antarctica multipolygon and so I created a new
> shapefile with that feature stripped out (but maintaining the same
> projection since mapnik should be able to reproject on the fly  
> now...):
>
> spring$ ogr2ogr -sql "select * from TM_WORLD_BORDERS-0.2 where Name <>
> 'Antarctica'" tm_sans_antarctica.shp TM_WORLD_BORDERS-0.2.shp
>
> If I run your exact setup (from 
> https://lists.berlios.de/pipermail/mapnik-users/2008-June/000955.html)
>  on the resulting, 245 feature shapefile, I get a correctly rendered
> map of everything except Antarctica.
>
> Do you have GDAL/OGR installed to test this? Is a world without the
> south pole still going to work for your purposes?
>
> Let me know,
>
> Dane
>
>
> On Jun 29, 2008, at 6:45 PM, Tom Carden wrote:
>
>> 2008/6/29 Artem Pavlenko <[EMAIL PROTECTED]>:
>>> Hi Tom,
>>>
>>> Try adding '+over' to SRS definitions
>>> Cheers
>>> Artem
>>>
>>
>> Hi Artem,
>>
>> You can see in my original mail I have +over in the srs of both the
>> Map element and the Layer element for the shapefile.
>>
>> I'm still stuck with this problem so if anyone else has successfully
>> reprojected the world borders shapefile from thematicmapping.org into
>> mercator using mapnik I'd love to hear how it's done :)
>>
>> Best,
>>
>> Tom.
>> _______________________________________________
>> 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
>

----------------------------------------------------------------
michal migurski- [EMAIL PROTECTED]
                  415.558.1610



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

Reply via email to