Skip to main content

map_tile_toolkit/
lib.rs

1#![doc = include_str!("../README.md")]
2
3mod error;
4pub use error::TileError;
5
6mod tile;
7pub use tile::TileId;
8
9mod vertex;
10pub use vertex::{Measured, PolyVertex, Vertex};
11
12// Low-level per-tile polyline clipping used by the slicer.
13mod clip_polyline;
14
15// Exact integer geometry predicates (orientation, point-in-ring) shared across clipping and polygons.
16mod geom;
17pub use geom::signed_area_2x;
18
19// Low-level per-tile polygon-ring clipping (keep-original with synthetic clip-boundary corners).
20mod clip_polygon;
21
22// The stateless tile geometry under the slicer: tile boxes and the lazy per-segment tile walk.
23mod grid;
24
25// Lazy polygon slicing: the row-by-row scanline behind `Slicer::polygon`.
26mod polygon;
27pub use polygon::{FillRun, PolygonPiece, PolygonSlice, PolygonSlices};
28
29mod slicer;
30pub use slicer::{
31    LineSlice, LineSlices, Local, LocalIter, PointSlice, PointSlices, Slicer, TileLines,
32};
33
34mod mosaic;
35pub use mosaic::{Mosaic, PolygonMosaic};