Skip to main content

Crate ridge_core

Crate ridge_core 

Source
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’s get_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 for RidgeMap.plot_map / plot_annotation.

Structs§

Bbox
Geographic bounding box, (long, lat, long, lat) of the bottom-left and top-right corners, exactly like upstream RidgeMap.__init__.

Enums§

Error

Constants§

DEFAULT_BBOX
Default bounding box from upstream ridge_map: The White Mountains, NH.

Type Aliases§

Result