mapbox/mbutil — pull request #34 by klokan (2012-08-10 15:46:47+00:00)
Title: Import broken, XYZ never implemented

As reported at http://support.mapbox.com/discussions/general-questions/2682-mb-util-exportimport-no-such-file-error
the import of exported mbtiles does not run.

It is possible to import only if there is no version/name prefix such as "1.0.0/layer-name" and only TMS tiles.
Right now default for export is "XYZ".

Solution:

- Implemented flip_y() call for XYZ scheme (which is now default) during importing
- The "version/name" subdirectory prefix has been removed during the export. I expect it is there only for dummy WMTS implementations (where it is not required by the standard anyway). It does not hold any information. Directory with metadata.json can anyway only contain one tileset.

Now import and export of the same .mbtiles runs (beside grids were not implemented before either) for both TMS and XYZ scheme.