Export to Raster.
[Visual Basic .NET] Public Sub AsRaster ( _ ByVal pTrackCancel As ITrackCancel, _ ByVal pFilter As ILasFilter, _ ByVal pDataset As IRasterDataset, _ ByVal Method As esriPointToRasterMethod, _ ByVal zSource As esriLasZSource, _ ByVal fillMethod As esriPointToRasterVoidFillMethod, _ ByVal Type As esriSurfaceInterpolationType, _ ByVal ZFactor As Double _ )
[C#] public void AsRaster ( ITrackCancel pTrackCancel, ILasFilter pFilter, IRasterDataset pDataset, esriPointToRasterMethod Method, esriLasZSource zSource, esriPointToRasterVoidFillMethod fillMethod, esriSurfaceInterpolationType Type, double ZFactor );
[C++]
HRESULT AsRaster(
ITrackCancel* pTrackCancel,
ILasFilter* pFilter,
IRasterDataset* pDataset,
esriPointToRasterMethod Method,
esriLasZSource zSource,
esriPointToRasterVoidFillMethod fillMethod,
esriSurfaceInterpolationType Type,
double ZFactor
);
[C++]Parameters
pTrackCancel [in]pTrackCancel is a parameter of type ITrackCancel
pFilter [in]pFilter is a parameter of type ILasFilter
pDataset [in]pDataset is a parameter of type IRasterDataset
Method [in]Method is a parameter of type esriPointToRasterMethod
zSource [in]zSource is a parameter of type esriLasZSource
fillMethod [in]fillMethod is a parameter of type esriPointToRasterVoidFillMethod
Type [in]Type is a parameter of type esriSurfaceInterpolationType
ZFactor [in] ZFactor is a parameter of type double
Product Availability
Description
Converts the las dataset to a raster primarily through binning.
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.
pDataset is the output RasterDataset.
Method is the esriPointToRasterMethod that represents the binning strategy for how values are assigned to cells containing one or more las points.
zSource is the esriLasZSource that indicates which las attribute to use for rasterization. If the value is esriLasZSourceColorRGB the output raster must be multiband.
fillMethod is the esriPointToRasterVoidFillMethod that defines the strategy for assigning values to cells that don't contain any las points. These cells can be left as NoData using NoFill. Small voids can be filled with the FillSimple method that averages values of surrounding data cells (larger voids may shrink by one or two cells but are not completely filled). To fill all voids, regardless of size, use the FillInterpolation method.
Type is the esriSurfaceInterpolationType used when the fillMethod is set to FillInterpolation. In this case, the simple fill method is applied first, eliminating small voids. The data cell centers surrounding the remaining voids are then triangulated and the Type is applied against this triangulation to interpolate/assign values for the cells in the void area.
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.