Creating a raster catalog layer
See the following code example:
[Java]
static void addRasterCatalogLayer(IActiveView activeView, IRasterCatalog
rasterCatalog)throws Exception{
//create a raster catalog layer
IGdbRasterCatalogLayer rastercatalogLayer = new GdbRasterCatalogLayer();
rastercatalogLayer.setup((ITable)rastercatalogLayer);
//Add it to map if the layer is valid
if (rastercatalogLayer != null){
IMap map = activeView.getFocusMap();
map.addLayer((ILayer)rastercatalogLayer);
}
}
| Development licensing | Deployment licensing |
|---|---|
| ArcInfo | ArcInfo |
| ArcEditor | ArcEditor |
| ArcView | ArcView |
| Engine Developer Kit | Engine Runtime |