随笔分类 -  Arcgis Engine

摘要:private static string getarcmap() { string environmentVariable = Environment.GetEnvironmentVariable("ARCGISHOME"); if (environmentVariable == null) { 阅读全文
posted @ 2022-03-28 12:48 南山种豆8 阅读(111) 评论(0) 推荐(0)
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text; namespace ArcGISPublic.GaussHelper{ class JWtoGauss { private doubl 阅读全文
posted @ 2022-03-28 12:06 南山种豆8 阅读(86) 评论(0) 推荐(0)
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text; namespace ArcGISPublic.GaussHelper{ class Gausstojw { private doubl 阅读全文
posted @ 2022-03-28 12:05 南山种豆8 阅读(76) 评论(0) 推荐(0)
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using ESRI.ArcGIS.Geometry; namespace ArcGISPublic.GaussHelper{ publ 阅读全文
posted @ 2022-03-28 12:04 南山种豆8 阅读(322) 评论(0) 推荐(0)
摘要://using System;//using System.Collections.Generic;//using System.Linq;//using System.Text;//using ESRI.ArcGIS.SystemUI;//using System.Windows.Forms; / 阅读全文
posted @ 2022-03-28 12:02 南山种豆8 阅读(41) 评论(0) 推荐(0)
摘要:/// <summary> /// 执行模型工具 /// </summary> /// <param name="toolBoxPath">工具箱路径</param> /// <param name="modelName">模型名称</param> /// <param name="paramete 阅读全文
posted @ 2022-03-28 12:01 南山种豆8 阅读(38) 评论(0) 推荐(0)
摘要:/// <summary> /// 获取所有要素类 /// </summary> /// <param name="featureDataset">要素集</param> /// <returns>要素类列表</returns> public static List<IFeatureClass> G 阅读全文
posted @ 2022-03-28 12:00 南山种豆8 阅读(77) 评论(0) 推荐(0)
摘要:/// <summary> /// 获取所有要素集 /// </summary> /// <param name="workspace">工作空间对象</param> /// <returns>要素集列表</returns> public static List<IFeatureDataset> G 阅读全文
posted @ 2022-03-28 11:58 南山种豆8 阅读(74) 评论(0) 推荐(0)
摘要:/// <summary> /// 执行GP工具 /// </summary> /// <param name="geoprocessor">GP对象</param> /// <param name="process">使用工具</param> /// <returns>成功返回true/失败返回f 阅读全文
posted @ 2022-03-28 11:57 南山种豆8 阅读(74) 评论(0) 推荐(0)
摘要:/// <summary> /// 判断GDB里是否存在要素类 /// </summary> /// <param name="gdbPath">GDB路径</param> /// <param name="featureClassName">要素类名称</param> /// <returns>存 阅读全文
posted @ 2022-03-28 11:57 南山种豆8 阅读(103) 评论(0) 推荐(0)
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Runtime.InteropServices;using ESRI.ArcGIS.esriSystem;us 阅读全文
posted @ 2022-03-28 11:56 南山种豆8 阅读(245) 评论(0) 推荐(0)
摘要:public static void SplitByLine(IMap map,IPolyline line, ILayer layer) { if (line != null) { IFeatureLayer pFeatureLayer = layer as IFeatureLayer; //划线 阅读全文
posted @ 2022-03-28 11:55 南山种豆8 阅读(94) 评论(0) 推荐(0)
摘要:public static bool DKContains(this IGeometry geometry1, IGeometry geometry2) { //使用IRelationalOperator的方法来判断空间位置关系 IRelationalOperator pRelOperator = 阅读全文
posted @ 2022-03-28 11:53 南山种豆8 阅读(40) 评论(0) 推荐(0)
摘要:public static List<IPoint> GetPointsFromFeature(IGeometry geometry) { //IPolygon pPolygon = new PolylineClass(); List<IPoint> li = new List<IPoint>(); 阅读全文
posted @ 2022-03-28 11:52 南山种豆8 阅读(29) 评论(0) 推荐(0)
摘要:/// <summary> /// 将点添加到图层 /// </summary> /// <param name="point">点对象</param> /// <param name="layer">图层对象</param> /// <returns>返回消息,添加成功则是空字符串</return 阅读全文
posted @ 2022-03-28 11:51 南山种豆8 阅读(36) 评论(0) 推荐(0)
摘要:/// <summary> /// 通过点获取栅格值 /// </summary> /// <param name="raster">栅格对象</param> /// <param name="point">点对象</param> /// <returns></returns> public sta 阅读全文
posted @ 2022-03-28 11:51 南山种豆8 阅读(68) 评论(0) 推荐(0)
摘要://修改比例尺 [DllImport("User32.dll")] public static extern int GetDesktopWindow(); public static void ChangeMapScale(double scale) { //mapDocument.Open(@" 阅读全文
posted @ 2022-03-28 11:50 南山种豆8 阅读(93) 评论(0) 推荐(0)
摘要:/// <summary> /// 输出地图到文件 /// </summary> /// <param name="resolution">像素</param> /// <param name="format">格式(后缀名,如jpg)</param> /// <param name="fileNa 阅读全文
posted @ 2022-03-28 11:49 南山种豆8 阅读(135) 评论(0) 推荐(0)
摘要:/// <summary> /// 按字段值选择要素(高亮显示选择结果) /// </summary> /// <param name="pFeatureLayer">要素图层</param> /// <param name="fieldName">字段名称</param> /// <param n 阅读全文
posted @ 2022-03-28 11:49 南山种豆8 阅读(80) 评论(0) 推荐(0)
摘要:public static void ZoomToLayer(IActiveView pActiveView, ILayer pLayer,double pading) { pActiveView.Extent = ((IGeoDataset)pLayer).Extent; pActiveView. 阅读全文
posted @ 2022-03-28 11:48 南山种豆8 阅读(76) 评论(0) 推荐(0)