How to upgrade an 8.x embedded raster catalog to a 9.x raster catalog in an ArcSDE geodatabase


Upgrading an 8.x embedded raster catalog to a 9.x raster catalog in an ArcSDE geodatabase

8.x embedded raster catalogs and 9.x raster catalogs have different schemas. To work properly in a 9.x geodatabase, an 8.x raster catalog has to be upgraded to a 9.x raster catalog. This articles explains how to accomplish this task; this only applies to raster catalogs in an ArcSDE geodatabase. See the following code example:
[Java]
//Upgrades an ArcSDE 8.x schema embedded raster catalog to 9.x raster catalog
static void UpgradeRasterCatalog(IWorkspace workspace, String rasterCatalog)throws
    Exception{
    //Cast the workspace to IRasterWorkspaceEx
    IRasterWorkspaceEx rasterWorkspaceEx = (IRasterWorkspaceEx)workspace;

    //Register with the geodatabase, the footprint column will have the same spatial reference as the raster column
    rasterWorkspaceEx.registerAsRasterCatalog(rasterCatalog, "OBJECTID", null);
}






Development licensingDeployment licensing
ArcGIS for Desktop StandardArcGIS for Desktop Standard
ArcGIS for Desktop AdvancedArcGIS for Desktop Advanced
Engine Developer KitEngine