• 大小: 6.77MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-11-01
  • 语言: C#
  • 标签: Arcgis  Engin  房产测绘  GIS  

资源简介

基于Arcgis engine +C# 开发的房产测绘软件,C/S架构,仅供参考。 基本涵盖房产测绘各种分析工具,代码量比较大,可供参考面广。

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using ESRI.ArcGIS.Controls;
using ESRI.ArcGIS.Carto;
using ESRI.ArcGIS.SystemUI;
using ESRI.ArcGIS.Geodatabase;
using ESRI.ArcGIS.Geometry;
using ESRI.ArcGIS.Display;
using ESRI.ArcGIS.esriSystem;
namespace buffertool
{
    public partial class BufferForm : Form
    {
        private IHookHelper m_hookHelper = null;
        private IMapControl2 pMapControl2 = null;
       // private ISelectionEvents pSelectionEvents = null;
        private IActiveViewEvents_AfterDrawEventHandler m_AfterDrawEventHandler;
                     
        private IMap m_Map;
       // private IActiveViewEvents pActiveViewEvents = null;

       // public delegate void SelectionchangedEventHandler();

        public BufferForm()
        {
            InitializeComponent();
        }
        //仿照ARCGIS的设计方式
        public void OnCreate(object hook)
        { 
            if (hook == null)
                return;
            if (hook is IMapControl2)
            {
                pMapControl2 = hook as IMapControl2;
            }
            if (hook is IToolbarControl)
            {
                IToolbarControl pToolbarControl = hook as IToolbarControl;
                pMapControl2 = pToolbarControl.Buddy as IMapControl2;
            }

            try
            {
                m_hookHelper = new HookHelperClass();
                m_hookHelper.Hook = hook;
                if (m_hookHelper.ActiveView == null)
                    m_hookHelper = null;
            }
            catch
            {
                m_hookHelper = null;
            }

        }

        private void BufferForm_Load(object sender EventArgs e)
        {
            InitForm();
            m_Map = m_hookHelper.FocusMap;
           // m_ActiveViewEventsSelectionchanged = new IActiveViewEvents_SelectionchangedEventHandler(this.onselectionchanged);
             m_AfterDrawEventHandler = new IActiveViewEvents_AfterDrawEventHandler(this.onselectionchanged);
            ((IActiveViewEvents_Event)(m_Map)).AfterDraw +=m_AfterDrawEventHandler;
           //pActiveViewEvents= m_hookHelper.FocusMap as IActiveViewEvents;
          // pActiveViewEvents.Selectionchanged += new SelectionchangedEventHandler(this.onselectionchanged);
        }
        private void InitForm() { 
           //IActiveView  pActiveView=m_hookHelper.FocusMap
            //Slayercob.Items.Clear();
            this.slayerTxt.Text = ““;
            Dlayercob.Items.Clear();
            IMap pMap = m_hookHelper.FocusMap;
            ESRI.ArcGIS.esriSystem.UID puid = new ESRI.ArcGIS.esriSystem.UIDClass();
            puid.Value = “{40A9E885-5533-11d0-98BE-00805F7CED21}“;  //只读取IFeaturelayer
            IEnumlayer pEnumlayer = pMap.get_layers(puidtrue);
            IFeaturelayer pFlayer = (IFea

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件     237568  2010-05-19 14:01  bin\ESRI.ArcGIS.3DAnalyst.dll

     文件     753690  2009-11-04 16:14  bin\ESRI.ArcGIS.3DAnalyst.xml

     文件      86016  2010-05-19 13:38  bin\ESRI.ArcGIS.Animation.dll

     文件     281446  2009-11-04 16:14  bin\ESRI.ArcGIS.Animation.xml

     文件    2301952  2010-05-19 13:24  bin\ESRI.ArcGIS.Carto.dll

     文件    7801392  2009-11-04 16:14  bin\ESRI.ArcGIS.Carto.xml

     文件     602112  2010-05-19 14:12  bin\ESRI.ArcGIS.Controls.dll

     文件    2364792  2009-11-04 16:14  bin\ESRI.ArcGIS.Controls.xml

     文件     155648  2010-05-19 13:07  bin\ESRI.ArcGIS.DataSourcesFile.dll

     文件     732342  2009-11-04 16:14  bin\ESRI.ArcGIS.DataSourcesFile.xml

     文件      77824  2010-05-19 13:10  bin\ESRI.ArcGIS.DataSourcesGDB.dll

     文件     283896  2009-11-04 16:14  bin\ESRI.ArcGIS.DataSourcesGDB.xml

     文件      19968  2010-05-19 13:15  bin\ESRI.ArcGIS.DataSourcesNetCDF.dll

     文件      70737  2009-11-04 16:14  bin\ESRI.ArcGIS.DataSourcesNetCDF.xml

     文件     507904  2010-05-19 13:12  bin\ESRI.ArcGIS.DataSourcesRaster.dll

     文件    1953922  2009-11-04 16:14  bin\ESRI.ArcGIS.DataSourcesRaster.xml

     文件     405504  2010-05-19 12:58  bin\ESRI.ArcGIS.Display.dll

     文件    1799608  2009-11-04 16:14  bin\ESRI.ArcGIS.Display.xml

     文件      77824  2010-05-19 13:35  bin\ESRI.ArcGIS.GeoAnalyst.dll

     文件     295658  2009-11-04 16:14  bin\ESRI.ArcGIS.GeoAnalyst.xml

     文件    1241088  2010-05-19 13:03  bin\ESRI.ArcGIS.Geodatabase.dll

     文件    4368195  2009-11-04 16:14  bin\ESRI.ArcGIS.Geodatabase.xml

     文件      90112  2010-05-19 13:16  bin\ESRI.ArcGIS.GeoDatabaseDistributed.dll

     文件     360629  2009-11-04 16:14  bin\ESRI.ArcGIS.GeoDatabaseDistributed.xml

     文件     126976  2010-05-19 13:17  bin\ESRI.ArcGIS.GeoDatabaseExtensions.dll

     文件     408584  2009-11-04 16:14  bin\ESRI.ArcGIS.GeoDatabaseExtensions.xml

     文件    1105920  2010-05-19 12:56  bin\ESRI.ArcGIS.Geometry.dll

     文件    4318800  2009-11-04 16:14  bin\ESRI.ArcGIS.Geometry.xml

     文件     499712  2010-05-19 13:41  bin\ESRI.ArcGIS.Geoprocessing.dll

     文件    2419518  2009-11-04 16:14  bin\ESRI.ArcGIS.Geoprocessing.xml

............此处省略442个文件信息

评论

共有 条评论