码迷,mamicode.com
首页 > 其他好文 > 详细

栅格数据的保存 SaveAs()方法

时间:2015-11-11 13:23:20      阅读:276      评论:0      收藏:0      [点我收藏+]

标签:


//栅格数据的保存 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;

栅格数据的保存 SaveAs()方法

标签:

原文地址:http://www.cnblogs.com/zhaosaiblogs/p/4955719.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!