**Reporter: Kompa** **[Submitted to the original trac issue database at 3.03pm, Tuesday, 11th January 2011]** Here's a patch to (hopefully) fix "South Pole Near Africa" problem with osm2pgsql. Demonstration of that: * OSM mapnik: http://www.openstreetmap.org/?lat=0&lon=0&zoom=15&layers=M * Custom mapnik: http://latlon.org/~komzpa/screenshots/osm2pgsql.jpg What this patch does: 1. Checks for Sphrical Mercator; 2. Checks whether node is a lot outside tile 0/0/0. Snaps it to boundary that does not lead to overflow; 3. Replaces proj4 calculation with direct Spherical Mercator formula, which is less strict about overflows and gave me ~5% speedup on test dataset.
Reporter: Kompa
[Submitted to the original trac issue database at 3.03pm, Tuesday, 11th January 2011]
Here's a patch to (hopefully) fix "South Pole Near Africa" problem with osm2pgsql.
Demonstration of that:
What this patch does: