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


ILasSurface.InterpolateRaster Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (GeoDatabaseExtensions)  

ILasSurface.InterpolateRaster Method

Export to Raster through triangulation.

[Visual Basic .NET]
Public Sub InterpolateRaster ( _
    ByVal pTrackCancel As ITrackCancel, _
    ByVal pLasFilter As ILasFilter, _
    ByVal pDataset As IRasterDataset, _
    ByVal Resolution As Double, _
    ByVal Method As esriTinPointSelectionMethod, _
    ByVal Type As esriSurfaceInterpolationType, _
    ByVal ZFactor As Double _
)
[C#]
public void InterpolateRaster (
    ITrackCancel pTrackCancel,
    ILasFilter pLasFilter,
    IRasterDataset pDataset,
    double Resolution,
    esriTinPointSelectionMethod Method,
    esriSurfaceInterpolationType Type,
    double ZFactor
);
[C++]
HRESULT InterpolateRaster(
  ITrackCancel* pTrackCancel,
  ILasFilter* pLasFilter,
  IRasterDataset* pDataset,
  double Resolution,
  esriTinPointSelectionMethod Method,
  esriSurfaceInterpolationType Type,
  double ZFactor
);
[C++]

Parameters pTrackCancel [in]
pTrackCancel is a parameter of type ITrackCancel pLasFilter [in]
pLasFilter is a parameter of type ILasFilter pDataset [in]
pDataset is a parameter of type IRasterDataset Resolution [in] Resolution is a parameter of type double Method [in]
Method is a parameter of type esriTinPointSelectionMethod Type [in]
Type is a parameter of type esriSurfaceInterpolationType ZFactor [in] ZFactor is a parameter of type double

Product Availability

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

Description

Converts the las dataset to an elevation raster through triangulation and interpolation.

pTrackCancel references a CancelTracker that can be used to stop the process. This can be set to NULL if the ability for the user to cancel isn't required.

pFilter references a LasFilter that defines the selection criteria for what points to use from the las files. The processing extent is also controlled by the area of interest property of the filter.

pDataset is the output raster dataset. This should typically be a single band image. If it's more, the elevation values will be written to the first band.

windowSize is the horizontal bin size, or sample distance, used for point thinning. The value should be provided in the XY units of the dataset. A square roving window of this size is passed over the set of filtered points. At each location one of the points inside the window is selected based on the selection Method. If there are no points in the window, no point is used. If there is only one point, then that point will be used. Specify a windowSize of -1 if no thinning is supposed to take place.

Method defines the point selection criteria when using windowSize filtering. Valid options include min, max, and average. The random method is not a valid option. If you don't want thinning select min, max, or average with a windowSize of -1.

Type is the interpolation method used to rasterize the points.

zFactor is used to change units of the output cell values (e.g., to convert feet to meters). The output cell values are multipled by the zFactor.

Notes:

This method rasterizes on height only. If you need to rasterize the las dataset on another variable look to ILasSurface.AsRaster and ILasPointCloud.LasPointStatsAsRaster.

See Also

ILasSurface Interface