I'm trying to programmatically do what's explained here. ('Focus on Image' to display an image in the Image Coordinate System.
I'm using a mosaic Layer to load an oblique dataset. Currently I'm able to access a selected feature by getting the feature with:
ICompositeLayer compositeLayer = mosaicLayer as ICompositeLayer; IFeatureLayer featureLayer = compositeLayer.Layer as IFeatureLayer; IFeatureSelection featureSelection = featureLayer as IFeatureSelection; ISelectionSet2 selectionSet = featureSelection.SelectionSet as ISelectionSet2; ICursor cursor = null; selectionSet.Search(null, true, out cursor); IFeatureCursor featureCursor = cursor as IFeatureCursor; IFeature feature = featureCursor.NextFeature();
and zooming to it with the answer from zoom to geometry
From here I would like to now view the selected feature's image in ICS.
This is currently only one aspect of what I'm trying to do with ArcObjects, which is make an add-in for Oblique display for Desktop.
Anything that would be helpful to first, display an image in ICS or to navigate an display Oblique Imagery using ArcObjects for ArcMap would be helpful
Using a selected footprint of a mosaicLayer How can I display the associated image in the Image Coordinate System?
Also, do I need to first load the raster from the selected footprint/FeatureLayer?