This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > DataSourcesRaster > ESRI.ArcGIS.DataSourcesRaster > Interfaces > IR > IRasterCatalogTable Interface > IRasterCatalogTable.RasterDataset Property (ArcObjects .NET 10.5 SDK) |
Reference to the ith raster dataset in the raster catalog.
[Visual Basic .NET] Public Function get_RasterDataset ( _ ByVal idx As Integer _ ) As IRasterDataset
[C#] public IRasterDataset get_RasterDataset ( int idx );
[C++]
HRESULT get_RasterDataset(
long idx,
IRasterDataset** ppRasterDataset
);
[C++]
Parameters idx [in] idx is a parameter of type long ppRasterDataset [out, retval]
ppRasterDataset is a parameter of type IRasterDataset
RasterCatalogTable created from raster catalog in file system and in the geodatabase has slightly different OIDs. The first starts from 0 and the later one starts from 1. To ensure your program work properly for both cases, pass OID, which can be obtained from IRasterCatalogTable::OID(index) to this property, instead of passing index directly.