Getting started
manby runs on macOS, Linux and Windows. pip installs it.
pip install manbyuv runs it without installing.
uvx manby -zg --drop-densest-as-needed -o places.pmtiles places.geojsonHomebrew and mise install the program alone, from the releases.
brew install birkskyum/tap/manbymise use -g github:birkskyum/manbyThe 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.
cargo install manbyFrom a clone, the program ends up in target/release/manby.
git clone https://github.com/birkskyum/manbycd manbycargo build --releaseThe repository also has tippecanoe-rs, the faithful Rust port of tippecanoe that manby uses as a library.
A first tileset
Section titled “A first tileset”manby takes tippecanoe’s options, and a tippecanoe command works with manby in its place.
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.
manby -zg -r1 --cluster-distance=10 --cluster-densest-as-needed \ --accumulate-attribute=value:sum -o clusters.pmtiles points.geojsonlFrom Python
Section titled “From Python”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)From R
Section titled “From R”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)Testing
Section titled “Testing”make testmake 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.
From Rust
Section titled “From Rust”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);