This document is archived and information here might be outdated. Recommended version. |
Indicates whether the raster dataset is empty.
[Visual Basic .NET]
Public ReadOnly Property IsEmpty As Boolean
[C#]
public bool IsEmpty {get;}
[C++]
HRESULT get_IsEmpty(
Boolean* IsEmpty
);
[C++] Parameters IsEmpty [out, retval]
IsEmpty is a parameter of type bool*
An empty raster means that properties of the Raster are not defined. The width, height, and the number of bands of the raster are all 0. It can not be used before populating pixels to it.
Co-create a Raster and IRasterDataset2::CreateRaster create an empty raster.
IRasterBandCollection::AppendBands or AppendBand allows you to populate this raster.