首页 > 代码库 > 栅格数据处理 RasterDataset RasterLayer Raster RasterBandCollection
栅格数据处理 RasterDataset RasterLayer Raster RasterBandCollection
1 IRasterLayer myrasterlayer = MapControl.Map.Layer[index] as IRasterLayer;
2 IRaster myRaster = myrasterlayer.Raster;
3 IRasterBandCollection myRasterBandCollection = myRaster as IRasterBandCollection;
4 IRasterBand myRasterBand = myRasterBandCollection.Item(0);
5 IRasterDataset myRasterDataset = myRasterBand as IRasterDataset;
.由RasterLayer 得到RasterDataset
RasterLayer->RasterDataset
IRasterLayer myrasterlayer = MapControl.Map.Layer[index] as IRasterLayer;
IRaster myRaster = myrasterlayer.Raster;
IRasterBandCollection myRasterBandCollection = myRaster as IRasterBandCollection;
IRasterBand myRasterBand = myRasterBandCollection.Item(0);
IRasterDataset myRasterDataset = myRasterBand as IRasterDataset;
2.由RasterDataset 到RasterLayer
1 IRasterLayer pRasterLayer = new RasterLayerClass();
2
3 pRasterLayer.CreateFromDataset(pRasterDataset);
4
5 axMapControl1.Map.AddLayer(pRasterLayer as ILayer); ;
1 IRasterLayer pRasterLayer = new RasterLayerClass();
2
3 pRasterLayer.CreateFromDataset(pRasterDataset);
4
5 axMapControl1.Map.AddLayer(pRasterLayer as ILayer); ;
栅格数据处理 RasterDataset RasterLayer Raster RasterBandCollection
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。