martin icon indicating copy to clipboard operation
martin copied to clipboard

Expand mbtiles binary

Open nyurik opened this issue 2 years ago • 3 comments

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, hash and hash, tile_data, plus a view to join them.
  • [x] support comparing two sqlite files
  • [x] support diffing between two sqlite files
  • [x] allow to get and set metadata 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

nyurik avatar May 18 '23 20:05 nyurik