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


IHydrologyOp.Fill Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (SpatialAnalyst)  

IHydrologyOp.Fill Method

Fills sinks in a surface to remove small imperfections in the data.

[Visual Basic .NET]
Public Function Fill ( _
    ByVal surfaceRaster As IGeoDataset, _
    [ByRef zLimit As Object] _
) As IGeoDataset
[C#]
public IGeoDataset Fill (
    IGeoDataset surfaceRaster,
    ref object zLimit
);
[C#]

Optional Values

zLimit   To indicate that this parameter is undefined, first define a variable object Missing=Type.Missing; then pass this in as ref Missing.
[C++]
HRESULT Fill(
  IGeoDataset* surfaceRaster,
  VARIANT* zLimit,
  IGeoDataset** Fill
);
[C++]

Parameters surfaceRaster [in]
surfaceRaster is a parameter of type IGeoDataset zLimit [optional] zLimit 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. Fill [out, retval]
Fill is a parameter of type IGeoDataset

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires Spatial Analyst Extension.

Remarks

surfaceRaster

a raster representing an elevation surface

[zLimit]

The maximum elevation difference between sink and its pour point to be filled. If the difference in z value between a sink and itps pour point is greater than {zLimit}, that sink will not be filled.

The default is to fill all sinks regardless of depth.

 

See Also

IHydrologyOp Interface