Draw rectangle on the map

Calculate slope direction

This sample shows how to get elevations in a grid pattern with a bounding box and then calculate the slope direction and it's magnitude for each point relative to its neighboring points. The slope calculations are based on the nine points algorithm in this great article.

Modules used: Drawing

Elevation data from the Azure Maps Elevation services © DLR 2011-2014 / © Airbus 2021.