ILayer l = ArcMap.Document.FocusMap.get_Layer(0); IFeatureClass fc = ((IFeatureLayer)l).FeatureClass; IFeatureCursor fCur = fc.Search(null, false); IFeature f = fCur.NextFeature(); IRasterValue2 rastVal = (IRasterValue2)f.get_Value(f.Fields.FindField("Raster")); IRaster r = rastVal.Raster;
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.