什么是栅格数据?
https://resources.arcgis.com/zh-cn/help/main/10.1/index.html#/na/009t00000002000000/https://desktop.arcgis.com/zh-cn/arcmap/10.3/manage-data/raster-and-images/what-is-raster-data.htm (重点:ESRI的介绍帮助文档)
地理信息图层的三种基本表现形式
https://resources.arcgis.com/zh-cn/help/getting-started/articles/026n0000000n000000.htm
如何存储和管理栅格数据
Working with ArcGIS Spatial Analyst objects |
可以保存的格式列表
IExtractionOp extraction = new RasterExtractionOpClass();
IRasterAnalysisEnvironment rasterAnalysisEnvironment = default(IRasterAnalysisEnvironment);
rasterAnalysisEnvironment = (IRasterAnalysisEnvironment)extraction;
//设置工作空间
IWorkspaceFactory workspaceFactory = new RasterWorkspaceFactoryClass();
//输出路径和名称
int iindx = extractFrm.ExtractParams.OutputRasterPath.LastIndexOf("\\");
//输出raster的名称
string suffixRasterName = (extractFrm.ExtractParams.OutputRasterPath.Substring(iindx + 1));
//输出raster的路径(无名称)
string rasterPath = extractFrm.ExtractParams.OutputRasterPath.Remove(iindx);
IWorkspace workspace = workspaceFactory.OpenFromFile(rasterPath, 0);//这里应该是输出raster的路径
rasterAnalysisEnvironment.OutWorkspace = workspace;
IRaster pRaster = extractFrm.ExtractParams.InputRasterLayer.Raster;
IRasterProps pProps = pRaster as IRasterProps;
object cellSizeProvider = pProps.MeanCellSize().X;
IGeoDataset pInputDataset = pRaster as IGeoDataset;
rasterAnalysisEnvironment.SetCellSize(esriRasterEnvSettingEnum.esriRasterEnvValue, ref cellSizeProvider);
object extentProvider = clipGeo.Envelope;
object snapRasterData = Type.Missing;
rasterAnalysisEnvironment.SetExtent(esriRasterEnvSettingEnum.esriRasterEnvValue, ref extentProvider, ref snapRasterData);
IGeoDataset geoDataset = extraction.Polygon((IGeoDataset)extractFrm.ExtractParams.InputRasterLayer, clipGeo as IPolygon, true);
IRaster raster = geoDataset as IRaster;
if (raster != null)
{
ISaveAs2 saveAs = (ISaveAs2)raster;
saveAs.SaveAs(extractFrm.ExtractParams.OutputRasterPath, workspace, "TIFF");
}
网友总结文章
http://blog.csdn.net/Mello_/article/details/41799643?ABstrategy=codes_snippets_optimize_v4
http://blog.sina.com.cn/s/blog_579ebc1101000803.html
http://www.cnblogs.com/xianyin05/archive/2013/06/06/3121759.html(影像的裁切和保存)
http://blog.sina.com.cn/s/blog_6d18787e01017r4f.html(Arcmap中用clip影像)
http://www.cnblogs.com/RoyYu/archive/2012/01/03/2310843.html(影像文件删除不掉的解决)
http://blog.csdn.net/kone0611/article/details/48518901(加载、范围、像素值)
http://www.voidcn.com/article/p-osdrofvx-yh.html(arcmap中栅格统计方法)
http://www.voidcn.com/article/p-pkghwcvd-bkw.html(Arcgis Engine栅格渲染(唯一值)IRasterUniqueValueRenderer)
https://www.cnblogs.com/chen-whutgis/p/3824290.html(ArcEngine 栅格数据)