nataraju

Raster image file source paths from mosaic dataset

Discussion created by nataraju on Dec 1, 2011
Latest reply on Dec 22, 2011 by nataraju
Hi,
When images from different locations on disk are added to a mosaic dataset.
How to retrieve the file paths from the Mosaic dataset?

Iam able to get each RasterDataset by IRasterCatalogItem using IMosaicdataset Cataolog items.
Public IRasterDataset GetRasterCatalogItem(IRasterCatalog catalog, int oid)
{
    //OID is the ObjectID of the raster dataset in the raster catalog.
    IFeatureClass featureClass = (IFeatureClass)catalog;
    IRasterCatalogItem rasterCatalogItem = (IRasterCatalogItem)
        featureClass.GetFeature(oid);
    return rasterCatalogItem.RasterDataset;
}

Cheers in Advance
Nattu

Outcomes