liuyu-esrichina-com-cn-esridist

How to get the rasterdataste's file path of MosaicDataset

Discussion created by liuyu-esrichina-com-cn-esridist on Sep 25, 2012
some times,I want to get the rasterdataste's file path of MosaicDataset, I use

IRasterCatalogItem pRasterCatalogItem = (IRasterCatalogItem)pRow;//pRow is from MosaicDataset's attribute table

                    IRasterDataset pRasterdataset = pRasterCatalogItem.RasterDataset;

                    IDataset pDs = pRasterdataset as IDataset;

                    string s = pDs.Workspace.PathName;

but the    variable s' value  is the Workspace's Path Name .not the original file path.any ideas?

Outcomes