This document is archived and information here might be outdated.  Recommended version.


ILasFile.EstimatePointSpacing Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (GeoDatabaseExtensions)  

ILasFile.EstimatePointSpacing Method

Estimate point spacing.

[Visual Basic .NET]
Public Function EstimatePointSpacing ( _
    ByVal bUseStatistics As Boolean _
) As Double
[C#]
public double EstimatePointSpacing (
    bool bUseStatistics
);
[C++]
HRESULT EstimatePointSpacing(
  VARIANT_BOOL bUseStatistics,
  double* pSpacing
);
[C++]

Parameters bUseStatistics [in] bUseStatistics is a parameter of type VARIANT_BOOL pSpacing [out, retval] pSpacing is a parameter of type double

Product Availability

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

Description

Returns the approximate horizontal post spacing of the points in the las file. The unit of the returned value is based on the XY coordinate system of the file.

bUseStatistics is used to specify which way to calculate the estimate. When set to FALSE, and statistics for the file have not been calculated, a simple approximation is made using the total points in the las file against the XY extent declared in the header. This approach's accuracy is relative to how evenly distributed the points are over the entire extent. The more evenly distributed, the more accurate. If statistics have been calculated then a more accurate assessment is made which does not assume the points are evenly distributed over the extent of the file. When bUseStatistics is set to TRUE statistics are required and an error will be raised if statistics are not available. See ILasDatasetEdit.CalculateFileStatistics and ILasDatasetEdit.CalculateStatistics.

 

See Also

ILasFile Interface