Skip to main content

Crate oxigdal_terrain

Crate oxigdal_terrain 

Source
Expand description

Advanced terrain analysis and DEM processing for OxiGDAL.

This crate provides comprehensive terrain analysis capabilities including:

  • Derivatives: slope, aspect, curvature, hillshade, TPI, TRI, roughness
  • Hydrology: flow direction, flow accumulation, watershed delineation, stream networks
  • Visibility: viewshed analysis, line of sight
  • Geomorphometry: landform classification, convergence, openness

§Features

  • derivatives: Terrain derivatives (slope, aspect, etc.)
  • hydrology: Hydrological analysis
  • visibility: Viewshed and line of sight
  • geomorphometry: Landform classification
  • parallel: Parallel processing with Rayon

§Examples

use oxigdal_terrain::derivatives::{slope_horn, SlopeUnits};
use scirs2_core::prelude::*;

let dem = Array2::from_elem((100, 100), 100.0_f32);
let slope = slope_horn(&dem, 10.0, SlopeUnits::Degrees, None)?;

§Performance

Most algorithms support optional parallelization through the parallel feature. For large DEMs, consider using parallel variants for improved performance.

Re-exports§

pub use error::Result;
pub use error::TerrainError;
pub use derivatives::AspectAlgorithm;
pub use derivatives::CurvatureType;
pub use derivatives::HillshadeAlgorithm;
pub use derivatives::RoughnessMethod;
pub use derivatives::SlopeAlgorithm;
pub use derivatives::SlopeUnits;
pub use derivatives::aspect;
pub use derivatives::aspect;
pub use derivatives::curvature;
pub use derivatives::curvature;
pub use derivatives::hillshade;
pub use derivatives::hillshade;
pub use derivatives::roughness;
pub use derivatives::roughness;
pub use derivatives::slope;
pub use derivatives::slope;
pub use derivatives::tpi;
pub use derivatives::tpi;
pub use derivatives::tri;
pub use derivatives::tri;
pub use hydrology::CatchmentInfo;
pub use hydrology::ChannelSegment;
pub use hydrology::FlowAlgorithm;
pub use hydrology::SnapPolicy;
pub use hydrology::ThresholdMode;
pub use hydrology::delineate_catchments;
pub use hydrology::extract_channel_network;
pub use hydrology::extract_streams;
pub use hydrology::fill_sinks;
pub use hydrology::fill_sinks_iterative;
pub use hydrology::fill_sinks_priority_flood;
pub use hydrology::flow_accumulation;
pub use hydrology::flow_accumulation;
pub use hydrology::flow_accumulation_dinf;
pub use hydrology::flow_direction;
pub use hydrology::flow_direction;
pub use hydrology::flow_direction_d8;
pub use hydrology::flow_direction_dinf;
pub use hydrology::strahler_order;
pub use hydrology::strahler_order_from_d8;
pub use hydrology::watershed_from_point;
pub use visibility::line_of_sight;
pub use visibility::viewshed_binary;
pub use visibility::viewshed_cumulative;
pub use geomorphometry::LandformClass;
pub use geomorphometry::classify_iwahashi_pike;
pub use geomorphometry::classify_weiss;
pub use geomorphometry::convergence_index;
pub use geomorphometry::negative_openness;
pub use geomorphometry::positive_openness;
pub use morphometry::CurvatureResult;
pub use morphometry::compute_curvature;
pub use morphometry::compute_twi;
pub use radiation::SolarOptions;
pub use radiation::SolarPosition;
pub use radiation::SolarRadiationResult;
pub use radiation::hillshade_at;
pub use radiation::solar_position;
pub use radiation::solar_radiation;
pub use mesh::TerrainTin;
pub use mesh::tin_from_dem;

Modules§

derivatives
Terrain derivatives module.
error
Error types for terrain analysis operations.
geomorphometry
Geomorphometric features module.
hydrology
Hydrological analysis module.
mesh
Terrain mesh generation.
morphometry
Morphometric and hydrologic indices derived from a DEM.
radiation
Topographic solar radiation modeling.
visibility
Visibility analysis module.