Erasing a portion of a geodatabase raster dataset
The following code shows how to erase a portion of a geodatabase raster dataset:
[Java]
static void erasePortionOfGDBRaster(IRasterDataset rasterDataset, IEnvelope
eraseExtent)throws Exception{
//IRasterDatasetEdit is needed for erase operation, Cast input IRasterDataset to IRasterDatasetEdit.
IRasterDatasetEdit rasterDatasetEdit = new IRasterDatasetEditProxy(rasterDataset)
;
rasterDatasetEdit.erase(eraseExtent);
}
See Also:
How to access a raster dataset or raster catalog| Development licensing | Deployment licensing |
|---|---|
| ArcGIS for Desktop Basic | ArcGIS for Desktop Basic |
| ArcGIS for Desktop Standard | ArcGIS for Desktop Standard |
| ArcGIS for Desktop Advanced | ArcGIS for Desktop Advanced |
| Engine Developer Kit | Engine |