ArcObjects Library Reference (SpatialAnalyst)  

IZonalOp.ZonalGeometry Method

Calculates for each zone of the input zone Dataset the specified geometry measure.

[Visual Basic .NET]
Public Function ZonalGeometry ( _
    ByVal zoneDataset As IGeoDataset, _
    ByVal Type As esriGeoAnalysisZonalGeometryEnum _
) As IGeoDataset
[C#]
public IGeoDataset ZonalGeometry (
    IGeoDataset zoneDataset,
    esriGeoAnalysisZonalGeometryEnum Type
);
[C++]
HRESULT ZonalGeometry(
  IGeoDataset* zoneDataset,
  esriGeoAnalysisZonalGeometryEnum Type,
  IGeoDataset** geometryGeoDataset
);
[C++]

Parameters

zoneDataset [in]

  zoneDataset is a parameter of type IGeoDataset

Type [in]

  Type is a parameter of type esriGeoAnalysisZonalGeometryEnum

geometryGeoDataset [out, retval]

  geometryGeoDataset is a parameter of type IGeoDataset

Product Availability

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

Remarks

zoneDataset an input Raster, RasterDataset, RasterBand, or RasterDescriptor or FeatureClass, FeatureClassDescriptor that identifies the zone for each cell location
type an esriGeoAnalysisZonalGeometryEnum that defines which zonal calculations will be performed on the zoneDataset

The esriGeoAnalysisZonalGeometryEnums are:

esriGeoAnalysisZonalGeometryArea for zonal area calculations.

esriGeoAnalysisZonalGeometryCentroid for zone centroid calculations.

esriGeoAnalysisZonalGeometryPerimeter for zonal perimeter calculations.

esriGeoAnalysisZonalGeometryThickness for zonal thickness calculations.

For complete information on the zonal calculations performed by each esriGeoAnalysisZonalGeometryEnum, refer to the individual command reference.

See Also

IZonalOp Interface