Expand description
ridge-core: the data pipeline behind ridgeline terrain art.
Port of the Python ridge_map package (with the parts of SRTM.py,
numpy and scipy.ndimage it relies on) to Rust, minus matplotlib:
rendering is delegated to svg (server-side export) or to the web
frontend, which consumes geometry::RidgeScene JSON.
Re-exports§
pub use geometry::RidgeRow;pub use geometry::RidgeScene;pub use srtm::Tile;pub use srtm::TileSource;
Modules§
- colormap
- Colors: named RGB values, matplotlib-style colormaps.
- geometry
- Turn a processed elevation grid into drawable ridge lines.
- grid
- Sample a bounding box into an elevation grid — the Rust twin of
SRTM.py’sget_image(..., mode='array')as used by ridge_map. - preprocess
- Replicates
RidgeMap.preprocess: water/lake masking + vertical scaling. - rotate
- SciPy-compatible 2D array rotation.
- srtm
- SRTM elevation tiles: parsing, downloading, caching.
- svg
- Server-side SVG rendering of a
RidgeScene— the matplotlib-free replacement forRidgeMap.plot_map/plot_annotation.
Structs§
- Bbox
- Geographic bounding box,
(long, lat, long, lat)of the bottom-left and top-right corners, exactly like upstreamRidgeMap.__init__.
Enums§
Constants§
- DEFAULT_
BBOX - Default bounding box from upstream ridge_map: The White Mountains, NH.