| Crates.io | versatiles_core |
| lib.rs | versatiles_core |
| version | 3.4.0 |
| created_at | 2024-05-29 12:20:52.577455+00 |
| updated_at | 2026-01-23 14:41:32.223955+00 |
| description | A toolbox for converting, checking and serving map tiles in various formats. |
| homepage | https://versatiles.org |
| repository | https://github.com/versatiles-org/versatiles-rs |
| max_upload_size | |
| id | 1255392 |
| size | 826,128 |
Core types and utilities for the VersaTiles ecosystem.
versatiles_core provides the foundational types and utilities used throughout the VersaTiles tile processing ecosystem. It includes coordinate systems (tile coordinates, bounding boxes), format type definitions, byte iteration utilities, and tile traversal helpers.
This crate serves as the base dependency for all other VersaTiles components.
TileCoord, TileBBox, TileBBoxPyramid for working with tile coordinates and bounding boxesTileFormat), compressions (TileCompression), and precompressionsByteIterator for reading blob datacargo add versatiles_core
Or see crates.io/crates/versatiles_core for version info and docs.rs/versatiles_core for API documentation.
use versatiles_core::{TileCoord, TileBBox, TileBBoxPyramid};
// Create a tile coordinate (zoom, x, y)
let coord = TileCoord::new(5, 16, 10)?;
// Create a bounding box at a specific zoom level
let bbox = TileBBox::new(5, 10, 12, 15, 20)?;
// Create a pyramid of bounding boxes across zoom levels
let pyramid = TileBBoxPyramid::new_full_up_to(8);
// Convert coordinates
let geo_bbox = bbox.get_geo_bbox();
println!("Geographic bounds: {:?}", geo_bbox);
For detailed API documentation, see docs.rs/versatiles_core.
This crate is part of the VersaTiles project, a toolbox for working with map tile containers in various formats.
For the complete toolset including CLI tools and servers, see the main VersaTiles repository.
MIT License - see LICENSE for details.