| Crates.io | geojson-tile-cli |
| lib.rs | geojson-tile-cli |
| version | 0.1.0 |
| created_at | 2025-10-27 22:46:10.156637+00 |
| updated_at | 2025-10-27 22:46:10.156637+00 |
| description | CLI tool for converting GeoJSON to tile images |
| homepage | https://github.com/rrainn/geojson-to-tile-images-rust |
| repository | https://github.com/rrainn/geojson-to-tile-images-rust |
| max_upload_size | |
| id | 1903841 |
| size | 69,054 |
Command-line tool for converting GeoJSON features to PNG tile images with Web Mercator projection.
This CLI uses the geojson-tile-renderer library under the hood.
cargo install geojson-tile-cli
geojson-tile render \
--input data.geojson \
--output tile.png \
--zoom 10 --x 163 --y 395 \
--size 512
geojson-tile render-many \
--input data.geojson \
--output tiles \
--zoom 10 \
--x-min 163 --x-max 165 \
--y-min 395 --y-max 397
This will create files like:
tiles/10_163_395.pngtiles/10_163_396.pngtiles/10_164_395.pnggeojson-tile render \
--input data.geojson \
--output tile.png \
--zoom 10 --x 163 --y 395 \
--size 512 \
--background-color "#FFFFFF" \
--fill-color "#007BFF" \
--stroke-color "#FF0000" \
--stroke-width 2.0
The CLI leverages parallel processing for batch rendering, providing ~50x faster performance compared to the TypeScript equivalent.
If you want to use this functionality in your own Rust code, add the library dependency:
[dependencies]
geojson-tile-renderer = "0.1.0"
See the geojson-tile-renderer documentation for API details.
MIT - See LICENSE file for details