- Moved metadata structs and tools from `utiles-core` to `utiles`
- `utiles-python`
- Refactoring and reorganizing of code
- Fixed comparison of LngLat obj
- Using rust lib for `python -m utiles` file size formatting
- `clippy::pedantic`
- Many changes on the road to `clippy::pedantic`
- `utiles-core` is almost fully pedantic
- `utiles` is becoming pedantic
- `utiles-python` is not very pedantic yet
- Testing:
- More tests added (mostly testing w/ python)
- Added test mbtiles file `osm-standard.0z4.mbtiles`
- fmt-str command and option `--fmt` added `tiles` command; allows string
formatting of json-tiles:
Format json-tiles format-string
fmt-tokens:
`{json_arr}`/`{json}` -> [x, y, z]
`{json_obj}`/`{obj}` -> {x: x, y: y, z: z}
`{quadkey}`/`{qk}` -> quadkey string
`{pmtileid}`/`{pmid}` -> pmtile-id
`{x}` -> x tile coord
`{y}` -> y tile coord
`{z}` -> z/zoom level
`{-y}`/`{yup}` -> y tile coord flipped/tms
`{zxy}` -> z/x/y
Example:
> echo "[486, 332, 10]" | utiles fmtstr
[486, 332, 10]
> echo "[486, 332, 10]" | utiles fmtstr --fmt "{x},{y},{z}"
486,332,10
> echo "[486, 332, 10]" | utiles fmt --fmt "SELECT * FROM tiles WHERE zoom_level = {z} AND tile_column = {x} AND tile_row = {y};"
SELECT * FROM tiles WHERE zoom_level = 10 AND tile_column = 486 AND tile_row = 332;
---