Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
sharkAndshark committed Dec 10, 2024
1 parent 84ded8f commit a3f704d
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 342 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

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

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ anyhow = "1.0"
approx = "0.5.1"
async-trait = "0.1"
bit-set = "0.8"
bytemuck = "1.19.0"
brotli = ">=5, <8"
cargo-husky = { version = "1", features = ["user-hooks"], default-features = false }
clap = { version = "4", features = ["derive"] }
Expand Down
3 changes: 1 addition & 2 deletions martin/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ fonts = ["dep:bit-set", "dep:pbf_font_tools"]
lambda = ["dep:lambda-web"]
mbtiles = ["dep:mbtiles"]
pmtiles = ["dep:pmtiles"]
cog = ["dep:tiff", "dep:png", "dep:bytemuck"]
cog = ["dep:tiff", "dep:png"]
postgres = ["dep:deadpool-postgres", "dep:json-patch", "dep:postgis", "dep:postgres", "dep:postgres-protocol", "dep:semver", "dep:tokio-postgres-rustls"]
sprites = ["dep:spreet", "tokio/fs"]
bless-tests = []
Expand All @@ -78,7 +78,6 @@ actix-web-static-files = { workspace = true, optional = true }
actix-web.workspace = true
async-trait.workspace = true
bit-set = { workspace = true, optional = true }
bytemuck = { workspace = true, optional = true }
brotli.workspace = true
clap.workspace = true
deadpool-postgres = { workspace = true, optional = true }
Expand Down
4 changes: 1 addition & 3 deletions martin/src/cog/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@ pub enum CogError {
#[error("Failed to write pixel bytes to png file at {0}: {1}")]
WriteToPngFailed(PathBuf, EncodingError),

#[error(
"The color type {0:?} and its bit depth of the tiff file {1} is not supported by png crate"
)]
#[error("The color type {0:?} and its bit depth of the tiff file {1} is not supported yet")]
NotSupportedColorTypeAndBitDepth(tiff::ColorType, PathBuf),

#[error("Couldn't parse the {0} value in gdal metadata(tiff tag 42112) from {1}")]
Expand Down
Loading

0 comments on commit a3f704d

Please sign in to comment.