Skip to content

Getting started

manby runs on macOS, Linux and Windows. pip installs it.

Terminal window
pip install manby

uv runs it without installing.

Terminal window
uvx manby -zg --drop-densest-as-needed -o places.pmtiles places.geojson

Homebrew and mise install the program alone, from the releases.

Terminal window
brew install birkskyum/tap/manby
mise use -g github:birkskyum/manby

The releases have the program alone, for macOS on Apple silicon and Intel, for Linux on x86-64 and arm64, built for glibc 2.28 or later, or for musl, which runs on any Linux, and for Windows on x86-64 and arm64.

cargo builds it, with Rust 1.90 or later, but without MapLibre Tiles.

Terminal window
cargo install manby

From a clone, the program ends up in target/release/manby.

Terminal window
git clone https://github.com/birkskyum/manby
cd manby
cargo build --release

The repository also has tippecanoe-rs, the faithful Rust port of tippecanoe that manby uses as a library.

manby takes tippecanoe’s options, and a tippecanoe command works with manby in its place.

Terminal window
manby -zg --drop-densest-as-needed -o places.pmtiles places.geojson

-zg chooses the maximum zoom from how close the features are. --largest-maximum-zoom-guess=14 chooses it the same way but no higher than 14, for dense data that would otherwise get more zooms than the map needs.

The input can be GeoJSON, newline-delimited GeoJSON (read in parallel with -P), FlatGeobuf, CSV, Geobuf, GeoParquet or Arrow, and GeoParquet in object storage or on the web, by URL. GeoPackage, Shapefile and OpenStreetMap data can be converted to FlatGeobuf with GDAL first. The output is a PMTiles archive, an MBTiles database, or a directory of tiles with -e.

Points can be clustered as tippecanoe clusters them, with their attributes accumulated.

Terminal window
manby -zg -r1 --cluster-distance=10 --cluster-densest-as-needed \
--accumulate-attribute=value:sum -o clusters.pmtiles points.geojsonl

pip install manby also installs a Python module, which tiles files, DuckDB queries and data frames. GeoParquet, DuckDB and Python has more.

import manby
manby.tile("places.geojson", "places.pmtiles", maximum_zoom="g", drop_densest_as_needed=True)

The R package tiles files, sf data frames and DuckDB tables. From R has more.

install.packages("manby", repos = c("https://birkskyum.r-universe.dev", "https://cloud.r-project.org"))
manby::tile(sf::st_read("places.gpkg"), "places.pmtiles", maximum_zoom = "g", drop_densest_as_needed = TRUE)
Terminal window
make test

make test runs the unit tests and tippecanoe’s own test suite with manby in place of tippecanoe, from GeoJSON input and again from Geobuf input. All 188 of tippecanoe’s expected outputs match, and the tests of tippecanoe’s other programs pass with manby as each of them.

manby is a library first. manby::run(&Options) reads, tiles and writes a tileset and returns an error instead of exiting, manby::join(&JoinOptions) joins tilesets, and the commands are thin layers over them. The options are tippecanoe’s, from a command line or as fields. From Rust has more, and docs.rs the API.

let args = ["manby", "-zg", "--drop-densest-as-needed", "-o", "places.pmtiles", "places.geojson"];
let options = manby::options::parse_args(&args.map(String::from))?;
let summary = manby::run(&options)?;
println!("{} tiles, to zoom {}", summary.tiles, summary.maxzoom);