来自:http://www.cnblogs.com/kisstome88/archive/2009/04/05/1429811.html
Raster坡度分析
IRasterLayer pRasterLayer=new RasterLayerClass ();
pRasterLayer =(IRasterLayer ) SC1 .Scene .get_Layer (0);
IRaster pIRaster = pRasterLayer.Raster ;
ISurfaceOp pSurfaceOp=new RasterSurfaceOpClass();
object zFactor=1;
IGeoDataset pGeoDataset=pSurfaceOp .Slope ((IGeoDataset ) pIRaster , esriGeoAnalysisSlopeEnum.esriGeoAnalysisSlopeDegrees ,ref zFactor);
IRasterLayer pRasterLayer1=new RasterLayerClass ();
IRaster praster=new ESRI .ArcGIS .DataSourcesRaster .Raster ();
praster =(IRaster ) pGeoDataset;
pRasterLayer1.CreateFromRaster (praster);
pRasterLayer1.Name = "生成坡度Raster";
SC1 .Scene .AddLayer (pRasterLayer1 ,false );