How to get the rasterdataste's file path of MosaicDataset

274
0
09-25-2012 11:03 PM
LiuYu
by
New Contributor
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?
0 Kudos
0 Replies