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 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. When bUseStatistics is set to TRUE statistics are used for the estimate. This will generally be more accurate but requires that statistics have already been generated (see ILasDatasetEdit.CalculateFileStatistics and ILasDatasetEdit.CalculateStatistics) which requires a scan of the data. An error will result if this property is set to TRUE and statistics have not been made.

See Also

ILasFile Interface