Crates.io | opencloudtiles |
lib.rs | opencloudtiles |
version | 0.1.11 |
source | src |
created_at | 2023-01-05 21:25:14.228048 |
updated_at | 2023-01-20 23:29:04.360948 |
description | A toolbox for converting, checking and serving map tiles in various formats. |
homepage | https://www.opencloudtiles.org |
repository | https://github.com/OpenCloudTiles/opencloudtiles-tools |
max_upload_size | |
id | 751822 |
size | 171,018 |
cargo install opencloudtiles
(very easy, but compiling can take 1-2 minutes)running opencloudtiles
will list you the available commands:
Usage: opencloudtiles <COMMAND>
Commands:
convert Convert between different tile containers
serve Serve tiles via http
probe Show information about a tile container
compare Compare two tile containers
feature | cloudtiles | pmtiles | mbtiles | tar |
---|---|---|---|---|
read container | ||||
- from file | ✅ | 🚧 | ✅ | ✅ |
- from http | 🚧 | 🚧 | 🚫 | 🚫 |
- from gcs | 🚧 | 🚧 | 🚫 | 🚫 |
- from S3 | 🚧 | 🚧 | 🚫 | 🚫 |
write container | ||||
- to file | ✅ | 🚧 | 🚧 | ✅ |
precompression | ||||
- uncompressed | ✅ | 🚧 | 🚫 | ✅ |
- gzip | ✅ | 🚧 | ✅ | ✅ |
- brotli | ✅ | 🚧 | 🚫 | ✅ |
More on the cloudtiles container: github.com/OpenCloudTiles/opencloudtiles-specification
cargo build && ./target/debug/opencloudtiles convert --tile-format webp tiles/original/hitzekarte.tar tiles/hitzekarte.tar
cargo build && ./target/debug/opencloudtiles convert tiles/original/stuttgart.mbtiles tiles/stuttgart.cloudtiles
cargo build && ./target/debug/opencloudtiles convert tiles/stuttgart.cloudtiles tiles/stuttgart.tar
cargo build && ./target/debug/opencloudtiles convert --min-zoom 14 --bbox -30,15,-20,20 ~/Dropbox/Dropbox\ upload/Dropbbox\ upload\ new/opencloudtiles/mbtiles/2023-01-planet.mbtiles tiles/mostly_water.cloudtiles
cargo build && ./target/debug/opencloudtiles probe tiles/stuttgart.cloudtiles
cargo build && ./target/debug/opencloudtiles serve tiles/stuttgart.cloudtiles
cargo build && ./target/debug/opencloudtiles serve -s tiles/frontend tiles/stuttgart.cloudtiles
cargo build && ./target/debug/opencloudtiles serve -s tiles/frontend tiles/original/europe.mbtiles
cargo instruments --all-features -t "CPU Profiler" -- convert ~/Dropbox/Dropbox\ upload/Dropbbox\ upload\ new/opencloudtiles/mbtiles/2023-01-eu-de.mbtiles tiles/test.cloudtiles
cargo build -r && ./target/release/opencloudtiles probe --scan ~/Dropbox/Dropbox\ upload/Dropbbox\ upload\ new/opencloudtiles/mbtiles/2023-01-eu-de.mbtiles
cargo instruments --all-features -t "CPU Profiler" -- probe --scan ~/Dropbox/Dropbox\ upload/Dropbbox\ upload\ new/opencloudtiles/mbtiles/2023-01-eu-de.mbtiles
cargo publish --no-verify
cargo test
cargo bench "bench"
git config --local core.hooksPath .githooks/