标签:
//栅格数据的保存 SaveAs()方法
IWorkspaceFactory rWorkspaceFactory = new RasterWorkspaceFactory();
IWorkspace rasterWorkspace = rWorkspaceFactory.OpenFromFile(workPath, 0);
ISaveAs saveas = (ISaveAs)SolineRasterR;
IDataset SolineRasterS = saveas.SaveAs(rasterName, rasterWorkspace, "GRID");
IGeoDataset pOutRaster = (IGeoDataset)SolineRasterS;
//栅格图层添加栅格数据
IRasterLayer TempRasterLayer = new RasterLayer();
TempRasterLayer.CreateFromRaster (SolineRasterR);
string filepath = TempRasterLayer.FilePath;
标签:
原文地址:http://www.cnblogs.com/zhaosaiblogs/p/4955719.html