PROProduction
Workflow-grade Pro analysis with audit-ready outputs.
workflow pro
Corridor Mapping and Route Planning
What is the terrain-optimal route for this linear infrastructure, and what alternative corridor band exists within an acceptable cost margin?
Forestry companies, energy utilities, and environmental regulatory consultancies evaluating new linear infrastructure corridors.
A feasibility study needs a first-pass route alignment and suitability band for stakeholder review before field surveys. Cost profiles: - `slope_only` — slope-only impedance; fastest, suitable for quick screening. - `slope_roughness` — balanced slope + roughness blend (default); recommended for road and pipeline siting. - `conservative` — equal slope/roughness weighting; preferred for sensitive terrain or pipelines.
| Parameter | Optional | Description |
|---|---|---|
| dem | no | Input DEM raster path. |
| start_features | no | Start feature vector path (point or polygon). |
| end_features | no | End feature vector path (point or polygon). |
| constraints | yes | Optional exclusion zone vector path (polygons to avoid). |
| cost_profile | yes | Cost weighting profile: `slope_only` | `slope_roughness` | `conservative`. Default: `slope_roughness`. |
| terminal_anchor_strategy | yes | Polygon terminal anchor mode: `mixed` | `centroid_only` | `boundary_only`. Default: `mixed`. |
| corridor_tolerance | yes | Fraction above optimal cost included in corridor suitability band. Default: `0.15`. |
| output_prefix | yes | Output prefix for generated artifacts. |
| Parameter | Type | Description |
|---|---|---|
| cost_surface | GeoTIFF | Normalized terrain impedance surface [0-1]. |
| accumulated_cost | GeoTIFF | Dijkstra accumulated cost from selected start anchor. |
| optimal_route | GeoPackage | Least-cost route LineString with route metrics. |
| corridor_suitability | GeoTIFF | Binary suitability band (`1` = within tolerance). |
| summary | JSON | Summary contract with metrics, selected anchors, and harmonization metadata. |
| html_report | HTML | Human-readable customer-facing report generated from the summary contract for stakeholder review and QA traceability. |
import whitebox_workflows as wbw
wbe = wbw.WbEnvironment(include_pro=True, tier="pro")
cost, acc_cost, route, suitability, summary = wbe.corridor_mapping_intelligence(
dem="data/dem.tif",
start_features="data/start_access_points.gpkg",
end_features="data/forest_block_targets.gpkg",
cost_profile="slope_roughness",
terminal_anchor_strategy="mixed",
corridor_tolerance=0.15,
output_prefix="output/access_road",
)
print(route) # path to optimal_route.gpkg
print(suitability) # path to corridor suitability raster
print(summary) # path to summary JSON
Use of this function requires a license for Whitebox Workflows Professional (WbW-Pro). Please visit www.whiteboxgeo.com to purchase a license.