IRaster、IRasterlayer、IRasterdataset之间的转换

IRaster、IRasterlayer、IRasterdataset之间的转换

layer = axMapControl.get_Layer(0);//需要的栅格图层

IRasterLayer rasterlayer = layer as IRasterLayer;

IRaster raster = rasterlayer.Raster;

IRasterBandCollection rasterbandcollection = raster as IRasterBandCollection;

IRasterBand rasterband = rasterbandcollection.Item(0);

IRasterDataset rasterdataset = rasterband as IRasterDataset;

from:http://hi.baidu.com/cya_lm/item/6f2fbceb33f3510a4ddcaf43

上一篇:《Visual C++ 2010入门教程》系列四:VC2010中初学者常见错误、警告和问题


下一篇:Docker学习第三天(Docker数据卷管理)