-
-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CLI: pmtiles convert INPUT.mbtiles OUTPUT.pmtiles
fails silently for MBTiles v 1.0
#167
Comments
pmtiles convert INPUT.mbtiles OUTPUT.pmtiles
fails silently for MBTiles v 1.0
MBTiles spec 1.1 and later have the Because this is isolated to only 1.0, I am tempted to just detect Other alternatives:
|
Option to specify the format is better (out of all the supported image formats). In reality the spec could work with any format as long as the data is organized in the expected schema in a sqlite database. |
Added a log message if no |
Updated in 1.19.2 |
Problem
When trying to convert MBTiles created based on the 1.0 spec, such as in this repo, PMTiles are generated but won't display.
Explanation
MBTiles 1.0 spec did not include
format
among the top-level metadata. PMTiles relies on this field to determine whether the data is vector or raster, since this version only supported raster (jpg/png).Potential fixes
Can be fixed manually by adding name/value
format
/png
to the metadata table of the MBTiles,convert
operation will work as expected.Raising an error from the CLI and/or JS library to warn users the required metadata is missing to aid debugging
Inferring
format
from other available metadata or the contents of the MBTilesAdditional Information
Repo that currently contains a bunch of MBTiles 1.0: https://github.com/mizmay/BerkeleyElectionResults
Sample (detailed) metadata for MBTiles 1.0 before adding the required
format
tag (note there is other non-required metadata available that could be used to resolve the value):The text was updated successfully, but these errors were encountered: