mapbox / mbutil

Importer and Exporter of MBTiles
http://mapbox.com/developers/
BSD 3-Clause "New" or "Revised" License
755 stars 198 forks source link

Is the XYZ the default scheme now? #33

Closed gilalan closed 11 years ago

gilalan commented 12 years ago

I've read some previous issues but I am not sure that XYZ is the current default scheme.

In my case, I generated a mbtile file from my web tiles in XYZ scheme (builded from Maperitive software). I'm not sure whether the mbtile generated is on the XYZ scheme too. I said that because I´ve uploaded my mbtile on MapBox and the result was a confusing map, the tiles were exchanged. The javascript code says that the scheme is XYZ and shows follow code: "tiles": ["\/v3\/gilliardlopes.ubtest\/{z}\/{x}\/{y}.png"]}.

My feeling is that the mbtile is on the TMS scheme and the MapBox are trying to build the map on XYZ schema.

Has anyone experienced this?

Thanks in advance.

kkaefer commented 12 years ago

The internal scheme in MBTiles files is TMS.

gilalan commented 12 years ago

How can I change from TMS to XYZ schema? I've read that is supported: https://github.com/mapbox/mbutil/issues/21

Thanks in advance.

kkaefer commented 12 years ago

Internally, MBTiles is only specified for storing in TMS scheme. However, if you import tile images, e.g. from disk, you can use --scheme=xyz.