Compute the slope of a raster dataset


Purpose
This sample demonstrates how to build and persist the slope map raster dataset of a digital elevation model (DEM).
The following values are used in this sample application:
  • Input raster dataset
  • Slope dataset
The slope of the raster dataset exists with the name you give it.

How to use

See How to use ArcGIS samples for help on running the sample. 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 and run the application.


Download the files for Java
scenario/RasterDatasetSlope.java Main class




Development licensing Deployment licensing
Engine Developer Kit Engine: Spatial Analyst
ArcGIS for Desktop Basic: Spatial Analyst