mirror of
https://github.com/maplibre/martin.git
synced 2024-12-18 20:31:54 +03:00
ccd550a2cf
* `mbtiles diff` now has an additional `--patch-type` param with `whole`, `bin-diff-raw` and `bin-diff-gz` values: * `whole` stores different tiles as before - as whole tiles in the `tiles` table * `bin-diff-raw` computes binary difference between tiles, and stores them as brotli-encoded value in a `bsdiffraw` table, together with a `xxh3_64` hash of the tile as it will be stored after patching * `bin-diff-gz` same as `bin-diff-raw`, but assumes the tiles are gzip-compressed, so it uncompresses them before comparing. The `xxh3_64` stores the hash of the uncompressed tile. The data will be stored in the `bsdiffrawgz` table (identical structure with above) * `mbtiles copy --apply-patch` will automatically detect if `bsdiffrawgz` or `bsdiffraw` tables exist, and will use binary patching. * `mbtiles apply-patch` does not support binary patching yet * `mbtiles copy --diff-with-file ... --patch-type ...` is an alias to `mbtiles diff --patch-type ...`
26 lines
745 B
TOML
26 lines
745 B
TOML
lints.workspace = true
|
|
|
|
[package]
|
|
name = "martin-tile-utils"
|
|
version = "0.5.0"
|
|
authors = ["Yuri Astrakhan <YuriAstrakhan@gmail.com>", "MapLibre contributors"]
|
|
description = "Utilities to help with map tile processing, such as type and compression detection. Used by the MapLibre's Martin tile server."
|
|
keywords = ["maps", "tiles", "mvt", "tileserver"]
|
|
categories = ["science::geo", "parsing"]
|
|
exclude = [
|
|
# Exclude the fixtures directory from the package - it's only used for tests.
|
|
"/fixtures",
|
|
]
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
repository.workspace = true
|
|
rust-version.workspace = true
|
|
|
|
[dependencies]
|
|
brotli.workspace = true
|
|
flate2.workspace = true
|
|
|
|
[dev-dependencies]
|
|
approx.workspace = true
|
|
insta.workspace = true
|