#codec #format #decoding #pmtiles #read-write #encoding #async-io

pmtiles2

A low level implementation of the PMTiles format based on the standard Read and Write (or AsyncRead and AsyncWrite) traits

13 releases

0.3.1 May 25, 2024
0.3.0 May 18, 2024
0.2.3 Dec 4, 2023
0.2.2 Oct 23, 2023
0.1.6 Jan 18, 2023

#1701 in Parser implementations

Download history 16/week @ 2024-06-17 12/week @ 2024-07-01 12/week @ 2024-07-22 97/week @ 2024-08-05 24/week @ 2024-08-19 25/week @ 2024-08-26 66/week @ 2024-09-23

67 downloads per month
Used in 2 crates (via bbox-tile-server)

MIT license

5.5MB
2.5K SLoC

PMTiles (for Rust) crates.io docs.rs build status

This crate includes a low level implementation of the PMTiles format based on the standard Read and Write (or AsyncRead and AsyncWrite from the futures-crate) traits.

It also contains some utilities, which might become handy when working with PMTiles archives. Among others these include functions for (de-)compression with all algorithms supported by PMTiles, as well as functions to convert from and to tile ids.

Documentation

See RustDoc Documentation.

The documentation includes some examples.

Installation

Add following lines to your Cargo.toml:

# Cargo.toml
[dependencies]
pmtiles2 = "0.3"

Features

serde

With this feature enabled most public types are (de-)serializable by serde.

async

With this feature enabled all readable / writable types also support asynchronous readers / writers via the AsyncRead and AsyncWrite traits from the futures-crate.

Dependencies

~15MB
~427K SLoC