Skip to main content

mln_engine/tile/
mod.rs

1//! Tiles' ids and data: unwrapped and overscaled tile ids around
2//! `mln_style::tile_id`'s canonical one, and tile ranges (`tile_id`,
3//! [`tile_range`]); the layers and features of vector tiles, and the
4//! geometry functions that work on them; and DEM data (`dem_data`).
5//!
6//! - [`TileData`]: a tile's data, which is an MVT tile read lazily with
7//!   fast-mvt, an MLT tile decoded with mlt-core, or features already in
8//!   tile coordinates (GeoJSON and custom geometry sources). Its layers
9//!   ([`TileLayer`]) and features ([`Feature`]) are views that borrow it.
10//! - [`geometry_tile_data`]: hole limits, polygon fixup on `i_overlay`,
11//!   feature conversion and corner rounding. The feature interface that the
12//!   tiles implement, ring classification and coordinate conversion are in
13//!   `mln_style::feature`.
14
15pub mod cut;
16pub mod dem;
17pub(crate) mod dem_data; // dem-heatmap
18mod error;
19pub mod feature;
20pub mod geometry_tile_data;
21mod mlt;
22mod mvt;
23mod tile_data;
24pub(crate) mod tile_id;
25pub mod tile_range;
26
27pub(crate) use error::TileError;
28pub(crate) use geometry_tile_data::convert_feature;
29pub use mlt::{MltFeature, MltLayer, MltTile};
30pub use mvt::{MvtFeature, MvtLayer, MvtTile};
31pub use tile_data::{Feature, FeatureGroups, GeoJsonFeature, TileData, TileLayer};
32pub use tile_id::{OverscaledTileID, UnwrappedTileID};
33
34#[cfg(test)]
35mod malformed_tile_test;
36
37#[cfg(test)]
38mod vector_tile_test;