how to find rasters from IMosaicDataset

519
4
08-07-2011 11:50 PM
zszs
by
New Contributor III
i need find out all rasters from a mosaicdataset
i use IMosaicDatasetOperation.Search,but got a AccessViolationException,and say "try to read or write protected memory"
thanks
Reply
0 Kudos
4 Replies
RobertBerger
New Contributor III
Greetings,

I'm not sure I understand what you're looking for, but let me give it a shot:
so you want to access the raster datasets inside the mosaic dataset? If so, you can use the rastercatalogitem interface. For the catalog provide the mosaic dataset footprint featureclass (as accessible through IMosaicDatasetLayer.
Is that what you're looking for?

robert
Reply
0 Kudos
zszs
by
New Contributor III
got it
thank you very much
Reply
0 Kudos
zszs
by
New Contributor III
but IMosaicDatasetOperation.Search is used for which scene,or when must use IMosaicDatasetOperation.Search
Reply
0 Kudos
Dr__SamArundel
New Contributor
Did this work? Can we not use the Catalog property on the IMosaicDataset2 to access the rasters? We have to get it from RasterCatalogItem and cast it to the MDS?
Reply
0 Kudos