#gis #tile #async #back-end #async-http #amazon-s3

pmtiles

Implementation of the PMTiles v3 spec with multiple sync and async backends

22 releases (11 breaking)

0.11.0 Sep 20, 2024
0.10.0 May 2, 2024
0.9.0 Apr 11, 2024
0.7.1 Feb 13, 2024
0.0.5 Oct 22, 2022

#20 in Geospatial

Download history 164/week @ 2024-08-12 171/week @ 2024-08-19 198/week @ 2024-08-26 123/week @ 2024-09-02 199/week @ 2024-09-09 354/week @ 2024-09-16 388/week @ 2024-09-23 189/week @ 2024-09-30 153/week @ 2024-10-07 294/week @ 2024-10-14 218/week @ 2024-10-21 124/week @ 2024-10-28 168/week @ 2024-11-04 361/week @ 2024-11-11 468/week @ 2024-11-18 169/week @ 2024-11-25

1,167 downloads per month
Used in 3 crates (2 directly)

MIT/Apache

4.5MB
1K SLoC

PMTiles (for Rust)

GitHub crates.io version docs.rs docs crates.io version CI build

This crate implements the PMTiles v3 spec, originally created by Brandon Liu for Protomaps.

Features

  • Opening and validating PMTile archives
  • Querying tiles
  • Backends supported:
    • Async mmap (Tokio) for local files
    • Async http and https (Reqwuest + Tokio) for URLs
    • Async s3 (Rust-S3 + Tokio) for S3-compatible buckets

Plans & TODOs

  • Documentation and example code
  • Support writing and conversion to and from MBTiles + x/y/z
  • Support additional backends (sync mmap and http at least)
  • Support additional async styles (e.g., async-std)

PRs welcome!

Development

  • This project is easier to develop with just, a modern alternative to make. Install it with cargo install just.
  • To get a list of available commands, run just.
  • To run tests, use just test.

License

Licensed under either of

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Test Data License

Some PMTile fixtures copied from official PMTiles repository.

Dependencies

~1–20MB
~291K SLoC