I would like to host an Openstreetmap server using Geoserver (Geoserver/GeoWebCache/postgis). However, I encounter a problem regarding the tiles and gridsets. TMS urls (myserv/z/x/y.png) are different than urls from openstreetmap.org or MapQuest. Furthermore, there is an offset on the y axis. The following url shows an area from my own server. The other url shows the same area from Mapquest.



The offset seems to be caused by the zoom level (here 14~=15) and by the y value (12392->11637). I hope my issue is understandable and that someone can help me.

(Sorry for my english)



1 Answer 1


Basic difference between TMS and Google/Openstreetmap Tiles is that TMS counts from bottom left, and the others from top left:


Maybe WMTS is the service you want.

  • Yes, I had this information. I saw that the way to get the "translated" y value is y = (2^zoom - 1) - y and I tried to use without great results. That's why I think my problem comes from the zoom offset. Feb 22, 2013 at 8:52
  • Ok, now i see the offset to the north. might be because the upper bound is rounded to 85.0511°, which is not exactly arctan(sinh(π)): wiki.openstreetmap.org/wiki/Slippy_map_tilenames. But I don't know how to solve that in Geoserver.
    – AndreJ
    Feb 22, 2013 at 9:20
  • Actually WMTS works well for me. I used it with a bad EPSG during my test. Now it's perfect. Thanks a lot. Feb 22, 2013 at 9:36
  • Can you specify "good" and "bad" EPSG for future users?
    – AndreJ
    Feb 22, 2013 at 10:14
  • Yes. I used the EPSG:4326 gridset instead of the EPSG:900913 one. They are the default ESPG gridsets proposed by geoserver. Feb 22, 2013 at 10:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.