You are not logged in.

Announcement

*** NOTICE: By 30th of September 2022 the forum.openstreetmap.org will be retired, please request a category for your community in the new ones as soon as possible using this process, which will allow you to propose your community moderators. We expect the migration of data will be finished by that date, you can follow its progress here.***

#1 2007-06-06 16:30:17

sgouros
Member
Registered: 2007-06-06
Posts: 2

Find the bounding box of a Slippy Map tile

Hello everybody

In my application I need to know the Lat, Long of the corners of a tile knowning its x,y offsets as well as the zoom

Using the tool in page:

http://almien.co.uk/OSM/Tools/Coord/

I can easily type x and y as well as the zoom, and I get all the info I need (tile corners, tile size and dimensions)

I was wondering if anybody could provide me with the formula that the tool uses to find the tile corners (especially the lat part).

( I am using the inverse Mercator projection equation as follows:  Lat (in degrees) = 180/PI * ATAN( SINH(yTile/2**z)) but it does not produce something valid )

Thanks in advance

George

Offline

#2 2007-06-06 21:42:04

Ben
Member
From: United Arab Emirates
Registered: 2006-05-23
Posts: 213

Re: Find the bounding box of a Slippy Map tile

almien says : put "source.php" on the end of the URL


Ben

Offline

Board footer

Powered by FluxBB