martin
martin copied to clipboard
Expand mbtiles binary
mbtiles crate has some good functionality to handle mbtiles (sqlite), and it would benefit mbtiles users to get some more functionality:
- [x] show mbtiles' metadata
- [x] compute available zoom min/max
- [ ] support conversion between "deduplicated data with the view schema" vs "simple schema" for storing tiles. Dedup schema is the one where there are two tables:
z, x, y, hashandhash, tile_data, plus a view to join them. - [x] support comparing two sqlite files
- [x] support diffing between two sqlite files
- [x] allow to
getandsetmetadata values, e.g.mbtiles set-meta <file> <property> <new_value>
Overall structure could be a single binary, and CLI styled similar to git: mbtiles meta <file.mbtiles>. Some of these functions could be copied from the OMT's mbtiles-tools (except that it should be far simpler to install with cargo install martin-mbtiles (we may want to rename martin-mbtiles into mbtiles for simplicity?)
The above should probably be done as individual sub-tasks