Move utils to v0.2, MAX_ZOOM

This commit is contained in:
Yuri Astrakhan 2023-12-09 10:17:19 -05:00
parent ad8770a6e5
commit b97f1ccdbe
26 changed files with 28 additions and 26 deletions

6
Cargo.lock generated
View File

@ -1894,7 +1894,7 @@ dependencies = [
[[package]]
name = "martin-tile-utils"
version = "0.1.6"
version = "0.2.0"
dependencies = [
"approx",
]
@ -3620,9 +3620,9 @@ dependencies = [
[[package]]
name = "tilejson"
version = "0.4.0"
version = "0.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0366d033d74f8a24237057ba082c8fd9b06111028baff00056689af5e4d28995"
checksum = "4456a8bde0c9c9de96db90d0a74ef225035669c6176ee00ff692f8f6c0d94475"
dependencies = [
"serde",
"serde_json",

View File

@ -48,7 +48,7 @@ insta = "1"
itertools = "0.12"
json-patch = "1.2"
log = "0.4"
martin-tile-utils = { path = "./martin-tile-utils", version = "0.1.0" }
martin-tile-utils = { path = "./martin-tile-utils", version = "0.2.0" }
mbtiles = { path = "./mbtiles", version = "0.8.0" }
num_cpus = "1"
pbf_font_tools = { version = "2.5.0", features = ["freetype"] }

View File

@ -2,7 +2,7 @@ lints.workspace = true
[package]
name = "martin-tile-utils"
version = "0.1.6"
version = "0.2.0"
authors = ["Yuri Astrakhan <YuriAstrakhan@gmail.com>", "MapLibre contributors"]
description = "Utilites 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"]

View File

@ -9,6 +9,8 @@ use std::fmt::Display;
pub const EARTH_CIRCUMFERENCE: f64 = 40_075_016.685_578_5;
pub const EARTH_RADIUS: f64 = EARTH_CIRCUMFERENCE / 2.0 / PI;
pub const MAX_ZOOM: u8 = 30;
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Format {
Gif,

View File

@ -1,5 +1,5 @@
---
source: mbtiles/tests/mbtiles.rs
source: mbtiles/tests/copy.rs
expression: actual_value
---
[[]]

View File

@ -1,5 +1,5 @@
---
source: mbtiles/tests/mbtiles.rs
source: mbtiles/tests/copy.rs
expression: actual_value
---
[[]]

View File

@ -1,5 +1,5 @@
---
source: mbtiles/tests/mbtiles.rs
source: mbtiles/tests/copy.rs
expression: actual_value
---
[[]]

View File

@ -1,5 +1,5 @@
---
source: mbtiles/tests/mbtiles.rs
source: mbtiles/tests/copy.rs
expression: actual_value
---
[[]]

View File

@ -1,5 +1,5 @@
---
source: mbtiles/tests/mbtiles.rs
source: mbtiles/tests/copy.rs
expression: actual_value
---
[[]]

View File

@ -1,5 +1,5 @@
---
source: mbtiles/tests/mbtiles.rs
source: mbtiles/tests/copy.rs
expression: actual_value
---
[[]]

View File

@ -1,5 +1,5 @@
---
source: mbtiles/tests/mbtiles.rs
source: mbtiles/tests/copy.rs
expression: actual_value
---
[[]]

View File

@ -1,5 +1,5 @@
---
source: mbtiles/tests/mbtiles.rs
source: mbtiles/tests/copy.rs
expression: actual_value
---
[[]]

View File

@ -1,5 +1,5 @@
---
source: mbtiles/tests/mbtiles.rs
source: mbtiles/tests/copy.rs
expression: actual_value
---
[[]]

View File

@ -1,5 +1,5 @@
---
source: mbtiles/tests/mbtiles.rs
source: mbtiles/tests/copy.rs
expression: actual_value
---
[[]]

View File

@ -1,5 +1,5 @@
---
source: mbtiles/tests/mbtiles.rs
source: mbtiles/tests/copy.rs
expression: actual_value
---
[[]]

View File

@ -1,5 +1,5 @@
---
source: mbtiles/tests/mbtiles.rs
source: mbtiles/tests/copy.rs
expression: actual_value
---
[[]]

View File

@ -1,5 +1,5 @@
---
source: mbtiles/tests/mbtiles.rs
source: mbtiles/tests/copy.rs
expression: actual_value
---
[[]]

View File

@ -1,5 +1,5 @@
---
source: mbtiles/tests/mbtiles.rs
source: mbtiles/tests/copy.rs
expression: actual_value
---
[[]]

View File

@ -1,5 +1,5 @@
---
source: mbtiles/tests/mbtiles.rs
source: mbtiles/tests/copy.rs
expression: actual_value
---
[[]]

View File

@ -1,5 +1,5 @@
---
source: mbtiles/tests/mbtiles.rs
source: mbtiles/tests/copy.rs
expression: actual_value
---
[[]]

View File

@ -1,5 +1,5 @@
---
source: mbtiles/tests/mbtiles.rs
source: mbtiles/tests/copy.rs
expression: actual_value
---
[[]]

View File

@ -1,5 +1,5 @@
---
source: mbtiles/tests/mbtiles.rs
source: mbtiles/tests/copy.rs
expression: actual_value
---
[[]]

View File

@ -1,5 +1,5 @@
---
source: mbtiles/tests/mbtiles.rs
source: mbtiles/tests/copy.rs
expression: actual_value
---
[[]]

View File

@ -1,5 +1,5 @@
---
source: mbtiles/tests/mbtiles.rs
source: mbtiles/tests/copy.rs
expression: actual_value
---
[[]]

View File

@ -1,5 +1,5 @@
---
source: mbtiles/tests/mbtiles.rs
source: mbtiles/tests/copy.rs
expression: actual_value
---
[[]]