[mapserver-users] Google tile schema to coordinates conversion

Stephen Woodbridge woodbri at swoodbridge.com
Sat Jun 11 10:10:32 EDT 2011

On 6/11/2011 8:36 AM, Niccolo Rigacci wrote:
> On Fri, Jun 10, 2011 at 05:43:27PM +0200, Armin Burger wrote:
>> I would like to set up a scripting solution based on MapScript that
>> replies correctly to requests using the Google tile schema x+y+z.
>> Does anybody know a formula how to transform the XYZ request values
>> to bounding box coordinates in the Google Spherical Mercator
>> projection?
> Just for the curious: the Bing map uses Quadkeys into the URL
> instead of x+y+z, here you can find the math beyond that:
> http://msdn.microsoft.com/en-us/library/bb259689.aspx
You might also want to look at mod_geocache as if supports all common 
tiling schemes off of a single tilecache. It also has a demo mode that 
will generate a sample OpenLayers page(s) to demo setup and access to 
the cache using each tiling scheme.

-Steve W

More information about the mapserver-users mailing list