1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
//! geolith-tiles-builder: tiles from OSM and Overture Maps.
//!
//! One module per output type:
//!
//! - the vector tile build, [`run`], writes a protomaps-schema `PMTiles`
//! archive from Overture Parquet and OSM,
//! - [`terrain`] writes Terrain-RGB `PMTiles` from `GeoTIFF` DEMs,
//! - [`raster`] archives a raster tile service as `PMTiles`,
//! - [`splat`] writes an OGC 3D Tiles tileset from a Gaussian splat,
//! - [`reconstruct`] turns drone video into a splat.
//!
//! The vector build runs in four phases:
//! 1. **Read + Process**: discover Parquet files, read features, route to
//! layer processors, project to world coordinates, clip to tiles, snap to
//! tile-local integers, encode MVT geometry commands.
//! 2. **External Sort**: buffer `SortEntry` items, flush sorted chunks to
//! disk when the buffer exceeds a threshold.
//! 3. **K-Way Merge**: merge all sorted chunks into globally sorted order.
//! 4. **`PMTiles` Write**: group entries by tile, encode MVT tiles, gzip
//! compress, write the archive in Hilbert order.
pub use error;
pub use output;
pub use ;
pub use ;
pub use TilesError;
/// Build the vector tile archive `config` describes: read, sort, merge and
/// write the protomaps-schema `PMTiles` file.
///
/// # Errors
///
/// Propagates any error from reading the sources, sorting, or writing the
/// archive.