This sample shows how to get a raster catalog from a geodatabase raster catalog layer.
How to use
- Add this function to your project.
- Call this function from your code.
Public Function GetRasterCatalogFromLayer(pRasterCatalogLayer As IGdbRasterCatalogLayer) As IRasterCatalog
'Geodatabase raster catalog layer is a type of feature layer
Dim pFeatureLayer As IFeatureLayer
Set pFeatureLayer = pRasterCatalogLayer
'FeatureClass property returns a raster catalog
Dim pFeatureClass As IFeatureClass
Set pFeatureClass = pFeatureLayer.FeatureClass
Set GetRasterCatalogFromLayer = pFeatureClass
End Function