Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

[PATCH] Download from web map chooser coordinates wrong #1134

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 1 comment
Closed

[PATCH] Download from web map chooser coordinates wrong #1134

openstreetmap-trac opened this issue Jul 23, 2021 · 1 comment

Comments

@openstreetmap-trac
Copy link

Reporter: tcarter[at]noggin.com.au
[Submitted to the original trac issue database at 8.40pm, Friday, 29th August 2008]

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.

@openstreetmap-trac
Copy link
Author

Author: schluessler
[Added to the original trac issue at 9.52pm, Tuesday, 9th September 2008]

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant