ArcObjects Library Reference (SpatialAnalyst)  

IGeneralizeOp.BoundaryClean Method

Smoothes the boundary between zones by expanding and shrinking the boundary.

[Visual Basic .NET]
Public Function BoundaryClean ( _
    ByVal Raster As IGeoDataset, _
    ByVal sortType As esriGeoAnalysisSortEnum, _
    ByVal runTwice As Boolean _
) As IGeoDataset
[C#]
public IGeoDataset BoundaryClean (
    IGeoDataset Raster,
    esriGeoAnalysisSortEnum sortType,
    bool runTwice
);
[C++]
HRESULT BoundaryClean(
  IGeoDataset* Raster,
  esriGeoAnalysisSortEnum sortType,
  VARIANT_BOOL runTwice,
  IGeoDataset** BoundaryClean
);
[C++]

Parameters

Raster [in]

  Raster is a parameter of type IGeoDataset

sortType [in]

  sortType is a parameter of type esriGeoAnalysisSortEnum

runTwice [in]   runTwice is a parameter of type VARIANT_BOOL BoundaryClean [out, retval]

  BoundaryClean is a parameter of type IGeoDataset

Product Availability

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

Remarks

raster

an input Raster, RasterDataset, RasterBand, or RasterDescriptor

sortType

specifies the type of sorting. This determines the priority of the cells to expand into their neighbors. There are three different ways to sort, esriGeoAnalysisSortAscending, esriGeoAnalysisSortDescending, and esriGeoAnalysisSortNone.

esriGeoAnalysisSortAscending sorts zones in ascending order by size. Zones with smaller total areas have a higher priority to expand into zones with] larger total areas.

esriGeoAnalysisSortDesending sorts zones in descending order by size. Zones with larger total areas have a higher priority to expand into zones with smaller total areas.

esriGeoAnalysisSortNone does no sorting by size. Zones with larger values have a higher priority to expand into zones with smaller values.

runTwice

a Boolean that specifies the number of directions in which the expansion and shrinking will take place.

If True, the expansion and shrinking is performed according to the sorting type, then does an additional shrinking and expansion with the priority reversed.

If False, the expansion and shrinking is performed once, according to sorting type.

 

See Also

IGeneralizeOp Interface