Opened 11 years ago

Closed 11 years ago

#1134 closed defect (fixed)

[PATCH] Download from web map chooser coordinates wrong

Reported by: tcarter@… Owned by: cbro@…
Priority: major Milestone:
Component: merkaartor Version:
Keywords: Cc:

Description

Calculation of lat/long values from tile coordinates in the SlippyMap? chooser seem to be wrong, trying to download areas in Sydney leads to lat/long values very close to zero (e-07 or e-08) being generated for the download URL.

Replacing the code in SlippyMapWidget::viewArea() with the example code in the Wiki http://wiki.openstreetmap.org/index.php/Slippy_map_tilenames#C.2FC.2B.2B seems to yield the correct results.

The attached patch (against current svn) makes this change and simplifies the OSM URL parsing code by using QUrl.

Attachments (1)

merkaartor-slippymap-coordinates.diff (5.8 KB) - added by tcarter@… 11 years ago.

Download all attachments as: .zip

Change History (2)

Changed 11 years ago by tcarter@…

comment:1 Changed 11 years ago by schluessler

Resolution: fixed
Status: newclosed

Your patch is commited to svn. Works fine, thanks for your work.

Note: See TracTickets for help on using tickets.