ArcObjects Library Reference (GeoAnalyst)  

ISurfaceOp2.Slope Method

Calculates Slope.

[Visual Basic .NET]
Public Function Slope ( _
    ByVal GeoDataset As IGeoDataset, _
    ByVal slopeType As esriGeoAnalysisSlopeEnum, _
    [ByRef zFactor As Object] _
) As IGeoDataset
[C#]
public IGeoDataset Slope (
    IGeoDataset GeoDataset,
    esriGeoAnalysisSlopeEnum slopeType,
    ref object zFactor
);
[C#]

Optional Values

zFactor   To indicate that this parameter is undefined, first define a variable object Missing = Type.Missing; then pass this in as ref Missing.
[C++]
HRESULT Slope(
  IGeoDataset* GeoDataset,
  esriGeoAnalysisSlopeEnum slopeType,
  VARIANT* zFactor,
  IGeoDataset** outGeoDataset
);
[C++]

Parameters

GeoDataset [in]

  GeoDataset is a parameter of type IGeoDataset

slopeType [in]

  slopeType is a parameter of type esriGeoAnalysisSlopeEnum

zFactor [optional]   zFactor is a parameter of type VARIANT

  To indicate this parameter is undefined pass a reference to a VARIANT with type VT_ERROR and scode value of DISP_E_PARAMNOTFOUND.

outGeoDataset [out, retval]

  outGeoDataset is a parameter of type IGeoDataset

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

geoDataset

an input Raster, RasterDataset, RasterBand, or RasterDescriptor

slopeType

esriGeoAnalysisSlopeEnum specifying the units in which the value of slope will be expressed

esriGeoAnalysisSlopeDegree with this option the inclination of slope will be calculated in degrees

esriGeoAnalysisSlopePercentrise indicates to output the percent rise, also referred to as the percent slope

[zFactor]

the number of ground x, y Units in one surface ZUnit

The geoDataset ZUnits are multiplied by the specified zFactor to adjust the output Raster ZUnits to another unit of measure. If no zFactor is specified the value of the zFactor is 1. Higher z values will result in a more exaggerated relief (surface) and thus in a more extreme shading.

 

See Also

ISurfaceOp2 Interface