Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
nyurik committed Jun 25, 2024
1 parent d61e4b2 commit bc3c9b8
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ json-patch = "2.0"
lambda-web = { version = "0.2.1", features = ["actix4"] }
libsqlite3-sys = { version = ">=0.27", features = ["bundled"] }
log = "0.4"
martin-tile-utils = { path = "./martin-tile-utils", version = "0.4.0" }
mbtiles = { path = "./mbtiles", version = "0.9.0" }
martin-tile-utils = { path = "./martin-tile-utils", version = "0.5.0" }
mbtiles = { path = "./mbtiles", version = "0.10.0" }
md5 = "0.7.0"
moka = { version = "0.12", features = ["future"] }
num_cpus = "1"
Expand Down
2 changes: 1 addition & 1 deletion martin-tile-utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ lints.workspace = true

[package]
name = "martin-tile-utils"
version = "0.4.1"
version = "0.5.0"
authors = ["Yuri Astrakhan <[email protected]>", "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"]
Expand Down
2 changes: 1 addition & 1 deletion martin/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ lints.workspace = true
[package]
name = "martin"
# Once the release is published with the hash, update https://github.com/maplibre/homebrew-martin
version = "0.13.0"
version = "0.14.0"
authors = ["Stepan Kuzmin <[email protected]>", "Yuri Astrakhan <[email protected]>", "MapLibre contributors"]
description = "Blazing fast and lightweight tile server with PostGIS, MBTiles, and PMTiles support"
keywords = ["maps", "tiles", "mbtiles", "pmtiles", "postgis"]
Expand Down
2 changes: 1 addition & 1 deletion mbtiles/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ lints.workspace = true

[package]
name = "mbtiles"
version = "0.9.1"
version = "0.10.0"
authors = ["Yuri Astrakhan <[email protected]>", "MapLibre contributors"]
description = "A simple low-level MbTiles access and processing library, with some tile format detection and other relevant heuristics."
keywords = ["mbtiles", "maps", "tiles", "mvt", "tilejson"]
Expand Down
4 changes: 2 additions & 2 deletions mbtiles/src/bindiff.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ impl BinDiffDiffer {
) -> Self {
assert_ne!(patch_type, Whole, "Invalid for BinDiffDiffer");
let insert_sql = format!(
"INSERT INTO {}(zoom_level, tile_column, tile_row, patch_data, uncompressed_tile_xxh3_64) VALUES (?, ?, ?, ?, ?)",
"INSERT INTO {}(zoom_level, tile_column, tile_row, patch_data, tile_xxh3_64_hash) VALUES (?, ?, ?, ?, ?)",
get_bsdiff_tbl_name(patch_type));
Self {
src_mbt,
Expand Down Expand Up @@ -302,7 +302,7 @@ impl BinDiffer<ApplierBefore, ApplierAfter> for BinDiffPatcher {
, srcTiles.tile_row
, srcTiles.tile_data
, patch_data
, uncompressed_tile_xxh3_64
, tile_xxh3_64_hash
FROM tiles AS srcTiles JOIN diffDb.{tbl} AS difTiles
ON srcTiles.zoom_level = difTiles.zoom_level
AND srcTiles.tile_column = difTiles.tile_column
Expand Down
4 changes: 2 additions & 2 deletions mbtiles/src/queries.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ where
tile_column integer NOT NULL,
tile_row integer NOT NULL,
patch_data blob NOT NULL,
uncompressed_tile_xxh3_64 integer NOT NULL,
tile_xxh3_64_hash integer NOT NULL,
PRIMARY KEY(zoom_level, tile_column, tile_row));"
);

Expand Down Expand Up @@ -260,7 +260,7 @@ where
OR (name = 'tile_column' AND type = 'INTEGER')
OR (name = 'tile_row' AND type = 'INTEGER')
OR (name = 'patch_data' AND type = 'BLOB')
OR (name = 'uncompressed_tile_xxh3_64' AND type = 'INTEGER'))
OR (name = 'tile_xxh3_64_hash' AND type = 'INTEGER'))
--
) as is_valid;"
);
Expand Down
2 changes: 1 addition & 1 deletion mbtiles/tests/snapshots/copy__databases@flat__bdr.snap
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ CREATE TABLE bsdiffraw (
tile_column integer NOT NULL,
tile_row integer NOT NULL,
patch_data blob NOT NULL,
uncompressed_tile_xxh3_64 integer NOT NULL,
tile_xxh3_64_hash integer NOT NULL,
PRIMARY KEY(zoom_level, tile_column, tile_row))'''
values = [
'( 5, 1, 1, blob(1B1E00F80799700B0AE100F45284A210A00708A0C03B), 479130493 )',
Expand Down
2 changes: 1 addition & 1 deletion mbtiles/tests/snapshots/copy__databases@hash__bdr.snap
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ CREATE TABLE bsdiffraw (
tile_column integer NOT NULL,
tile_row integer NOT NULL,
patch_data blob NOT NULL,
uncompressed_tile_xxh3_64 integer NOT NULL,
tile_xxh3_64_hash integer NOT NULL,
PRIMARY KEY(zoom_level, tile_column, tile_row))'''
values = [
'( 5, 1, 1, blob(1B1E00F80799700B0AE100F45284A210A00708A0C03B), 479130493 )',
Expand Down

0 comments on commit bc3c9b8

Please sign in to comment.