Computing the Slope of a Raster Dataset


Purpose
This developer sample takes a digital elevation model (DEM) and builds and persists its slope map raster dataset.

How to use

If the sample has associated data, you will find that the sample's zip file includes a "data" folder alongside the language folders. However, you will need to update the sample to point to the location of the data once you have extracted all the files.

  1. Compile the application.
  2. Run the application with valid data for the following parameters: input raster dataset and slope dataset to create
  3. The slope of the raster dataset will exist with the name you gave it.

RasterSlope.cpp C++ project file.
RasterSlope.h Header file.
PathUtilities.cpp Additional C++ functions
PathUtilities.h Additional header file.
StdAfx.cpp Precompiled header files.
StdAfx.h Precompiled header files.
Download the VCPP files

Download the files for all languages




Development licensing Deployment licensing
Engine Developer Kit Engine