摘要: 首先你要明白Polyline是由path对象构成,Polygon是由ring对象构成,因此实现polyline向polygon的转换,思路如下:1.提取polyline中的所有path对象2.将path对象转换成ring对象,由于IRing继承自IPath,因此该转换是合理的3.利用IGeometryCollection.AddGeometry添加ring对象,构成polygon示例如下://cast the polyline object to the polygonISegmentCollection pRing;IGeometryCollection pPolygon = new Pol 阅读全文
posted @ 2013-07-18 16:29 之远 阅读(1317) 评论(0) 推荐(0)
摘要: private void axMapControl1_OnDoubleClick(object sender, ESRI.ArcGIS.Controls.IMapControlEvents2_OnDoubleClickEvent e) { if (this._App.CurrentTool == "ESRITool") return;//实现对界面正在激活状态下工具的选取,不同tool实现不同双击事件 if (this._App.CurrentTool == "ESRIToolMe") { ... 阅读全文
posted @ 2013-07-16 16:22 之远 阅读(593) 评论(0) 推荐(0)
摘要: 为什么心中总是各种“草泥马”在奔。。。因为各种不公平不公正总是出现在自己的眼前,与自己或有关或无关。每个人似乎天性里都是期望公平的,然而这个世界就是这个样子,没有绝对的公平可言,于是对于别人或自己的遭遇我们冷眼旁观,无能为力,有时候也发发牢骚,排解一下心中的愤恨。我们试图改变,然而常常事与愿违,我们怀疑自己是否太懦弱,唾弃这个社会太黑暗,常常时不时的抒发自己的愤怒。。。然而最终我们依然什么都不曾改变,于是我们宁愿相信我们的世界还是美好的,人生还是充满机遇与挑战,当然我也这么认为,否则人生岂不是太不快乐。。。人有两种选择,改变自己进而改变世界,或者平淡的活着。 总是想起鲁迅说的“怒其不争,哀其不 阅读全文
posted @ 2013-06-01 12:05 之远 阅读(293) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace file{ /// <summary> /// FTP参数类 /// </summary> public class FtpParams { private static bool m_IsInit = false; private static string m_ServerIP = "127.0.0.1"; private static ... 阅读全文
posted @ 2013-05-31 11:39 之远 阅读(165) 评论(0) 推荐(0)
摘要: ///RadioGroup添加项public void intit() {esriGeoAnalysisSlopeEnum m_SlopeType1 = esriGeoAnalysisSlopeEnum.esriGeoAnalysisSlopeDegrees; esriGeoAnalysisSlopeEnum m_SlopeType2 = esriGeoAnalysisSlopeEnum.esriGeoAnalysisSlopePercentrise; DevExpress.XtraEditors.Controls.RadioGroup... 阅读全文
posted @ 2013-05-31 11:25 之远 阅读(1073) 评论(0) 推荐(0)
摘要: 操作类public class operate { private Stack<IElement> nows = new Stack<IElement>(); private IElement nl; private IElement xElement; public operate() { } //撤销 public void rollback(Stack<IElement> history, IMapControl3 axmap, IGraphics... 阅读全文
posted @ 2013-05-16 09:26 之远 阅读(381) 评论(0) 推荐(0)
摘要: private Bitmap JpgToBmp() { Bitmap img1 = new Bitmap(Width, Height); Graphics g1 = Graphics.FromImage(img1); Image img2 = Image.FromFile(@"D:\gisc#\\P11-06-11_08.49.jpg"); g1.DrawImage(img2, new Rectangle(Point.Empty, img2.Size)); return... 阅读全文
posted @ 2013-05-15 17:54 之远 阅读(162) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.Text;using System.Runtime.InteropServices;using System.IO;using ESRI.ArcGIS.Geodatabase;using ESRI.ArcGIS.esriSystem;using System.Windows.Forms;using ESRI.ArcGIS.DataSourcesFile;namespace txttodbf{ public class TxtToDbf { privat... 阅读全文
posted @ 2013-05-15 17:44 之远 阅读(1517) 评论(0) 推荐(0)