This document is archived and information here might be outdated. Recommended version. |
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 _ )
[C#] public void CalculateFieldStatistics ( int index, IStringArray pFieldNames, ITrackCancel pTrackCancel );
[C++]
HRESULT CalculateFieldStatistics(
long index,
IStringArray* pFieldNames,
ITrackCancel* pTrackCancel
);
[C++] Parameters 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*
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.
Notes:
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.