This document is archived and information here might be outdated.  Recommended version.


ISurfaceOp.CutFill Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (GeoAnalyst)  

ISurfaceOp.CutFill Method

Calculates cut and fill areas.

[Visual Basic .NET]
Public Function CutFill ( _
    ByVal beforeGeoDataset As IGeoDataset, _
    ByVal afterGeoDataset As IGeoDataset, _
    [ByRef zFactor As Object] _
) As IGeoDataset
[C#]
public IGeoDataset CutFill (
    IGeoDataset beforeGeoDataset,
    IGeoDataset afterGeoDataset,
    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 CutFill(
  IGeoDataset* beforeGeoDataset,
  IGeoDataset* afterGeoDataset,
  VARIANT* zFactor,
  IGeoDataset** outGeoDataset
);
[C++]

Parameters beforeGeoDataset [in]
beforeGeoDataset is a parameter of type IGeoDataset afterGeoDataset [in]
afterGeoDataset is a parameter of type IGeoDataset 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

beforeGeoDataset

an input Raster, RasterDataset, RasterBand, or RasterDescriptor. Represents the before (past) state of the study area.

afterGeoDataset

an input Raster, RasterDataset, RasterBand, or RasterDescriptor. Represents the current or after state of the study area.

[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

ISurfaceOp Interface