Arcgis Engine 裁切影像为Tiff总结2

什么是栅格数据?

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


如何存储和管理栅格数据

https://desktop.arcgis.com/zh-cn/arcmap/10.3/manage-data/raster-and-images/how-raster-data-is-stored-and-managed.htm


Working with ArcGIS Spatial Analyst objects

http://resources.esri.com/help/9.3/ArcGISEngine/dotnet/concepts_start.htm#dcefd559-9cda-4122-9dd8-ecb1d82e9ae3.htm


可以保存的格式列表

http://edndoc.esri.com/arcobjects/9.2/Java/shared/geoprocessing/conversion_tools/raster_to_other_format_multiple_conversion_.htm



                    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 栅格数据)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

赵之章

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值