资源简介

客户最近打电话过来,说我们的软件在量距离的时候不能平移地图。我们的软件是使用ArcEngine来开发的,在网上输入关键字“arcengine 距离测量”,可以搜索到一大堆内容基本相似的文章或代码,基本上都是采用INewLineFeedback来实现的,我们的软件也是使用此种方法。方法大致如下:写一个距离测量工具,继承自BaseTool,在该类中使用INewLineFeedback动态绘制多段折线,最后转化为Element添加到地图上。如果要增加平移功能,我们仿造ArcMap使用鼠标中键平移,在OnMouseDown、OnMouseMove、OnMouseUp事件中增加判断鼠标中键的语句,然后分

资源截图

代码片段和文件信息

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2013-02-04 16:13  MeasureDistance\
     目录           0  2013-02-04 17:06  MeasureDistance\MeasureDistance\
     文件       18459  2013-02-04 17:01  MeasureDistance\MeasureDistance\DrawPolygonTool.cs
     文件        5428  2013-02-04 17:04  MeasureDistance\MeasureDistance\Form1.Designer.cs
     文件        1868  2013-02-04 17:06  MeasureDistance\MeasureDistance\Form1.cs
     文件        9320  2013-02-04 17:04  MeasureDistance\MeasureDistance\Form1.resx
     文件        6151  2013-02-04 16:55  MeasureDistance\MeasureDistance\MeasureDistance.csproj
     文件         496  2013-02-04 16:13  MeasureDistance\MeasureDistance\Program.cs
     目录           0  2013-02-04 16:13  MeasureDistance\MeasureDistance\Properties\
     文件        1362  2013-02-04 16:13  MeasureDistance\MeasureDistance\Properties\AssemblyInfo.cs
     文件        2880  2013-02-04 16:13  MeasureDistance\MeasureDistance\Properties\Resources.Designer.cs
     文件        5612  2013-02-04 16:13  MeasureDistance\MeasureDistance\Properties\Resources.resx
     文件        1100  2013-02-04 16:13  MeasureDistance\MeasureDistance\Properties\Settings.Designer.cs
     文件         249  2013-02-04 16:13  MeasureDistance\MeasureDistance\Properties\Settings.settings
     目录           0  2013-02-04 16:53  MeasureDistance\MeasureDistance\bin\
     目录           0  2013-02-04 16:59  MeasureDistance\MeasureDistance\bin\Debug\
     文件       27136  2013-02-04 17:06  MeasureDistance\MeasureDistance\bin\Debug\MeasureDistance.exe
     文件       52736  2013-02-04 17:06  MeasureDistance\MeasureDistance\bin\Debug\MeasureDistance.pdb
     文件       14328  2013-02-04 17:07  MeasureDistance\MeasureDistance\bin\Debug\MeasureDistance.vshost.exe
     文件        1167  2012-12-17 10:02  MeasureDistance\MeasureDistance\frmAreaFormcs.cs
     文件        4088  2013-02-04 16:56  MeasureDistance\MeasureDistance\frmAreaFormcs.designer.cs
     文件       11218  2012-12-17 10:02  MeasureDistance\MeasureDistance\frmAreaFormcs.resx
     文件        1180  2012-12-17 10:02  MeasureDistance\MeasureDistance\frmDistanceForm.cs
     文件        3902  2013-02-04 16:56  MeasureDistance\MeasureDistance\frmDistanceForm.designer.cs
     文件        6020  2012-12-17 10:02  MeasureDistance\MeasureDistance\frmDistanceForm.resx
     目录           0  2013-02-04 16:13  MeasureDistance\MeasureDistance\obj\
     目录           0  2013-02-04 17:06  MeasureDistance\MeasureDistance\obj\Debug\
     文件        3828  2013-02-04 16:57  MeasureDistance\MeasureDistance\obj\Debug\ComDll.frmAreaFormcs.resources
     文件         180  2013-02-04 16:57  MeasureDistance\MeasureDistance\obj\Debug\ComDll.frmDistanceForm.resources
     文件        2572  2013-02-04 17:05  MeasureDistance\MeasureDistance\obj\Debug\MeasureDistance.Form1.resources
     文件         180  2013-02-04 16:57  MeasureDistance\MeasureDistance\obj\Debug\MeasureDistance.Properties.Resources.resources
............此处省略8个文件信息

评论

共有 条评论