ridge-core
The terrain pipeline behind ridge_redux: a Rust port of the Python package ridge_map ("3D maps with 1D lines"), without matplotlib.

It turns a bounding box into ridgeline artwork:
- Fetch SRTM elevation tiles from a mirror, cached on disk
(
srtm). - Sample a grid of lines over the box
(
grid). The sampling is bit-for-bit identical to ridge_map's, checked against its test fixture. - Rotate to a viewpoint angle, like
scipy.ndimage.rotate(rotate). - Mask water and lakes, and exaggerate the relief
(
preprocess). - Lay out the ridge rows as a matplotlib-style figure
(
geometry) and write SVG (svg).
Command line
cargo install ridge-core installs render, which draws one map to SVG:
render --help lists every option. For an interactive editor (pick the area
on a map, rotate and restyle live), use cargo install ridge_redux.
Library
use ;
use ;
use RemoteSource;
use ;
use Bbox;
srtm::DirSource reads .hgt tiles from a directory instead, for offline
use. SRTM covers latitudes between 60°S and 60°N.
License
MIT. ridge-core is a port of ridge_map, also MIT, whose copyright notice is kept in LICENSE-upstream.
Elevation data: NASA Shuttle Radar Topography Mission.