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

ITerrainEdit3.CalculateFieldStatistics Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > GeodatabaseExtensions > ESRI.ArcGIS.GeoDatabaseExtensions > Interfaces > IT > ITerrainEdit3 Interface > ITerrainEdit3.CalculateFieldStatistics Method
ArcGIS Developer Help

ITerrainEdit3.CalculateFieldStatistics Method

Calculate Terrain blob field statistics of the specified embedded data source.

[Visual Basic .NET]
Public Sub CalculateFieldStatistics ( _
    ByVal index As Integer, _
    ByVal pFieldNames As IStringArray, _
    ByVal pTrackCancel As ITrackCancel _
public void CalculateFieldStatistics (
    int index,
    IStringArray pFieldNames,
    ITrackCancel pTrackCancel
HRESULT CalculateFieldStatistics(
  long index,
  IStringArray* pFieldNames,
  ITrackCancel* pTrackCancel
index [in]

index is a parameter of type long pFieldNames [in]
pFieldNames is a parameter of type IStringArray* pTrackCancel [in]
pTrackCancel is a parameter of type ITrackCancel*

Product Availability

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


Calculates basic statistical information for attributes stored in embedded feature classes. The statistics are saved with the terrain and can be retrieved with ITerrainEmbeddedDataSource2.GetFieldStatistics or ITerrainEmbeddedDataSource2.GetReservedFieldStatistics.

index indicates which feature class to calculate statistics for. The index must refer to an embedded feature class.

pFieldNames indicates the fields for which statistics will be calculated. If you pass a NULL for the StrArray statistics will be calculated for all fields.

pTrackCancel is a reference to a CancelTracker to support progress reporting and the ability to halt the process. To bypass this feature pass a NULL pointer.



This method should also be used to re-calculate existing attribute statistics when needed (e.g., due to edits). Find out if the statistics for a field are outdated with ITerrainFieldStatistics.NeedsUpdate.

See Also

ITerrainEdit3 Interface