Opened 10 years ago

Closed 9 years ago

#3452 closed defect (fixed)

[PATCH] overflow with near-pole data and mercator

Reported by: Komяpa Owned by: mapnik-team@…
Priority: minor Milestone:
Component: mapnik Version:
Keywords: Cc:


Here's a patch to (hopefully) fix "South Pole Near Africa" problem with osm2pgsql.

Demonstration of that:

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.

Attachments (1)

reprojection_spherical_merc_pole_fix.diff (1.1 KB) - added by Komяpa 10 years ago.

Download all attachments as: .zip

Change History (4)

Changed 10 years ago by Komяpa

comment:1 Changed 9 years ago by jburgess777@…

Resolution: fixed
Status: newclosed

Patch applied with some minor tweaks in r25075.

comment:2 Changed 9 years ago by chris66

Priority: majorminor
Resolution: fixed
Status: closedreopened

Still South Pole data can be seen at Africa:

comment:3 Changed 9 years ago by Ldp

Resolution: fixed
Status: reopenedclosed

It is fixed, in the tools.

Now, it takes time to work that out of the data and the map. It'll be gone after the next full import, which hopefully will not take that long anymore to start.

Note: See TracTickets for help on using tickets.