Export to GitHub

mod-geocache - issue #68

Documentation for requesting tiles service requests


Posted on Mar 23, 2011 by Grumpy Horse

Here is some documentation that you might want to add to a wiki page:

Files me be requested via the virtual earth service provider if it is configured. Tile requests follow the following format:

http://myhost.com/geocache/ve?LAYER=<tileset_name>@<grid_name>&tile=<quadkey&gt;

Tiles are organized in one of two different layouts depending on whether they are using a Spherical Mercator project, like: epsg:3857 or epsg:900913, or if they are using the geographical projection, like: epsg:4326.

For epsg:3857 or epsg:900913, <quadkey> are arranged:

z1 = [0]

http://myhost.com/geocache/ve?LAYER=osm@GoogleMapsCompatible&tile=0

z2 = [00][01] [02][03]

http://myhost.com/geocache/ve?LAYER=osm@GoogleMapsCompatible&tile=00 http://myhost.com/geocache/ve?LAYER=osm@GoogleMapsCompatible&tile=01 http://myhost.com/geocache/ve?LAYER=osm@GoogleMapsCompatible&tile=02 http://myhost.com/geocache/ve?LAYER=osm@GoogleMapsCompatible&tile=03

etc.

For epsg:4326, <quadkey> are arranged:

z1 =[0][1]

http://myhost.com/geocache/ve?LAYER=osm@WGS84&tile=0 http://myhost.com/geocache/ve?LAYER=osm@WGS84&tile=1

z2 = [00][01][10][11] [02][03][12][13]

http://myhost.com/geocache/ve?LAYER=osm@WGS84&tile=00 http://myhost.com/geocache/ve?LAYER=osm@WGS84&tile=01 http://myhost.com/geocache/ve?LAYER=osm@WGS84&tile=02 http://myhost.com/geocache/ve?LAYER=osm@WGS84&tile=03 http://myhost.com/geocache/ve?LAYER=osm@WGS84&tile=10 http://myhost.com/geocache/ve?LAYER=osm@WGS84&tile=11 http://myhost.com/geocache/ve?LAYER=osm@WGS84&tile=12 http://myhost.com/geocache/ve?LAYER=osm@WGS84&tile=13

etc.

Comment #1

Posted on Mar 24, 2011 by Grumpy Horse

I would like to expand this ticket for all service types, not just VE. So here is more information that can be added to the wiki/documentation. I know some of this is just documenting the various tiling schemes, but the more use part is to explain how to access the web service if you need to use one of these schemes.

KML service:

http://myhost.com/geocache/kml/@///.kml

TMS service:

http://myhost.com/geocache/tms/1.0.0 /@///.png

For epsg:3857 or epsg:900913 :

cell = [z/x/y]

z1 = [0/0/0]

z2 = [1/0/0][1/1/0] [1/0/1][1/1/1]

z3 = [2/0/0][2/1/0][2/2/0][2/3/0] [2/0/1][2/1/1][2/2/1][2/3/1] [2/0/2]... [2/0/3]...

etc.

For epsg:4326 :

z1 = [0/0/0][0/1/0]

z2 = [1/0/0][1/1/0][1/2/0][1/3/0] [1/0/1][1/1/1][1/2/1][1/3/1]

etc.

Hope I got all the correct.

Comment #2

Posted on Mar 24, 2011 by Helpful Rhino

Steve, would be ok if I add you as a project commiter so you can create and edit those wikipages yourself?

Comment #3

Posted on Mar 24, 2011 by Grumpy Horse

Created a new wiki page RequestingTilesFromService and added the information here to that page.

Status: Done

Labels:
Type-Enhancement Priority-Medium Component-Docs