This document is archived and information here might be outdated. Recommended version. |
The number of points in the files/folders to be added.
[Visual Basic .NET]
Public Function GetPointCount ( _
) As Double
[C#]
public double GetPointCount (
);
[C++]
HRESULT GetPointCount(
void
);
Returns the number of points in the files referenced by the importer. See AddFile and AddFolder.
For LAS data the desired return numbers and/or class codes, as set by ITerrainLasDataImporter, will be taken into consideration. You must include some returns via ITerrainLasDataImporter.AddReturnNumber. The LAS specification records the number of points by return in the header so getting counts by return will be fast. On the other hand, if class codes are specified (see ITerrainLasDataImporter.AddClassCodes) the files must be scanned to determine the count. The time this will take is proportional to the amount of data to scan through.
Introduced in LAS version 1.1 is a Witheld flag as a point property. GetPointCount does not take this flag into consideration when totaling points.