This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > DataSourcesRaster > ESRI.ArcGIS.DataSourcesRaster > Interfaces > IR > IRasterCatalogTable Interface > IRasterCatalogTable.RasterExtent Property (ArcObjects .NET 10.4 SDK) |
Extent of the ith raster in the catalog.
[Visual Basic .NET] Public Function get_RasterExtent ( _ ByVal idx As Integer _ ) As IEnvelope
[C#] public IEnvelope get_RasterExtent ( int idx );
[C++]
HRESULT get_RasterExtent(
long idx,
IEnvelope** ppExtent
);
[C++]
Parameters idx [in] idx is a parameter of type long ppExtent [out, retval]
ppExtent is a parameter of type IEnvelope
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.