geojson-tile-cli

Crates.iogeojson-tile-cli
lib.rsgeojson-tile-cli
version0.1.0
created_at2025-10-27 22:46:10.156637+00
updated_at2025-10-27 22:46:10.156637+00
descriptionCLI tool for converting GeoJSON to tile images
homepagehttps://github.com/rrainn/geojson-to-tile-images-rust
repositoryhttps://github.com/rrainn/geojson-to-tile-images-rust
max_upload_size
id1903841
size69,054
Charlie Fish (fishcharlie)

documentation

README

geojson-tile-cli

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.

Installation

cargo install geojson-tile-cli

Usage

Render a Single Tile

geojson-tile render \
	--input data.geojson \
	--output tile.png \
	--zoom 10 --x 163 --y 395 \
	--size 512

Render Multiple Tiles

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.png
  • tiles/10_163_396.png
  • tiles/10_164_395.png
  • etc.

Styling Options

geojson-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

Performance

The CLI leverages parallel processing for batch rendering, providing ~50x faster performance compared to the TypeScript equivalent.

Library Usage

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.

License

MIT - See LICENSE file for details

Commit count: 0

cargo fmt