This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > GeoDatabaseExtensions > ESRI.ArcGIS.GeoDatabaseExtensions > Interfaces > IT > ITerrainDataImporter Interface > ITerrainDataImporter.GetPointCount Method (ArcObjects .NET 10.4 SDK) |
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(
double* pCount
);
[C++]
Parameters pCount [out, retval] pCount is a parameter of type double
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.