ArcObjects Library Reference (GeoDatabaseExtensions)  

ITerrainFieldStatistics.GetUniqueValuesAsLong Method

Returns the unique values.

[Visual Basic .NET]
Public Function GetUniqueValuesAsLong ( _
) As ILongArray
[C#]
public ILongArray GetUniqueValuesAsLong (
);
[C++]
HRESULT GetUniqueValuesAsLong(
  ILongArray** ppValues
);
[C++]

Parameters

ppValues [out, retval]

  ppValues is a parameter of type ILongArray

Product Availability

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

Description

Returns an array containing the unique values for the set of observations. For example, if a collection of 1000 observations only contains a few different values, say 1, 5, and 10, it is this function which returns just those three values.

Use ITerrainFieldStatistics.UniqueValueType to determine whether to obtain the values using this method or ITerrainFieldStatistics.GetUniqueValuesAsDouble.

There is a one to one correspondence between the values in this array and those returned by ITerrainFieldStatistics.GetUniqueValueCounts. The latter contains the number of observed values.

This method stops collecting unique values when there's more than 256. That indicates the data is more continuous in nature than discrete.

See Also

ITerrainFieldStatistics Interface