ArcObjects Library Reference (GeoDatabaseExtensions)  

ITerrainLasDataInfo2.GetPointInfoByClassCode Method

Get the number of points corresponding to the specified class codes.

[Visual Basic .NET]
Public Sub GetPointInfoByClassCode ( _
    ByVal pTrackCancel As ITrackCancel, _
    ByVal pCodes As ILongArray, _
    ByRef ppCounts As IDoubleArray, _
    ByRef ppExtents As IArray _
)
[C#]
public void GetPointInfoByClassCode (
    ITrackCancel pTrackCancel,
    ILongArray pCodes,
    ref IDoubleArray ppCounts,
    ref IArray ppExtents
);
[C++]
HRESULT GetPointInfoByClassCode(
  ITrackCancel* pTrackCancel,
  ILongArray* pCodes,
  IDoubleArray** ppCounts,
  IArray** ppExtents
);
[C++]

Parameters

pTrackCancel [in]

  pTrackCancel is a parameter of type ITrackCancel

pCodes

  pCodes is a parameter of type ILongArray

ppCounts [out]

  ppCounts is a parameter of type IDoubleArray

ppExtents [out]

  ppExtents is a parameter of type IArray

Product Availability

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

Description

Returns point count and extent information based on LAS class codes.

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.

pCodes is a LongArray containing the LAS class codes. You can either provide an empty array, in which case all codes contained in the file will be discovered and written into the array for you, or you can specify specific codes of interest. If you specify the codes then the count and extent information will be reported only for those classes.

pCounts is an output DoubleArray containing the number of points per class. There is a one to one correspondence between the codes in the pCodes array and the counts in the pCounts array.

pExtents in an output array of envelopes. The envelopes capture the XYZ extents of the points based on class code. There is a one to one correspondence between the codes in the pCodes array and the envelopes placed in the pExtents array. If a code has been specified in the pCodes array that does not exist in the file the resulting envelope will be empty (IGeometry.IsEmpty=TRUE).

See Also

ITerrainLasDataInfo2 Interface