pbarry / MBTiles-extractor

A little python script to take an mbtiles file and split it apart into a folder hierarchy of individual image tile files.
39 stars 24 forks source link

Y/column/image number error #1

Open toton6868 opened 11 years ago

toton6868 commented 11 years ago

I have created my own customized tile in tilemill and extract it using this tool. Now I am facing some problem with its indexing or naming convention. I am giving an clear example. I have taken an area where 6 tiles were created. In Google Maps or OSM in the same extent its giving 6 tiles and the same tiles. So there is no referencing or projection problem. Even the X or the folder name is also matching. I am getting trouble with the Y column or Image name. Its not matching. I have taken a close look at it. Interestingly I found in Google or OSM the Y column is incrementing from top to bottom where as tilemill created tiles number those incrementing from bottom to top. That is why the naming of tiles are not matching. What should I do?

ubahnverleih commented 10 years ago

This is flipped TMS: http://wiki.openstreetmap.org/wiki/TMS#The_Y_coordinate_flipped in leaflet you can set tms: true - http://leafletjs.com/reference.html#tilelayer