资源简介

本系统能够实现GIS的基本功能,系统较为基础,有SQL Server数据库数据,有登陆界面及注册功能,可修饰加工,适用于地信测绘开发入门,功能包括:添加文件,地图放大\缩小、比例放大\缩小、地图漫游、全图显示、距离量测、面积量测、移除图层、打开属性表、鹰眼等。

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using ESRI.ArcGIS.Carto;
using ESRI.ArcGIS.Controls;
using ESRI.ArcGIS.DataSourcesFile;
using ESRI.ArcGIS.DataSourcesGDB;
using ESRI.ArcGIS.Display;
using ESRI.ArcGIS.esriSystem;
using ESRI.ArcGIS.Geodatabase;
using ESRI.ArcGIS.Geometry;
using ESRI.ArcGIS.GlobeCore;
using ESRI.ArcGIS.Output;
using ESRI.ArcGIS.SystemUI;
using WindowsFormsApplication3.command;
using MyGis.Forms;
namespace WindowsFormsApplication3
{
    public partial class Form1 : DevComponents.DotNetBar.RibbonForm
    {
         private ilayer currentlayer;
         private FrmAttributesTable FrmAttributesTable;
        //构造函数
        public Form1()
        {
            InitializeComponent();
        }

        private void ribbonTabItem1_Click(object sender EventArgs e)
        {

        }

        //地图放大
        private void buttonItem14_Click(object sender EventArgs e)
        {
            ICommand command = new ControlsMapZoomInTool();
            command.OnCreate(axMapControl1.object);
            axMapControl1.CurrentTool = command as ITool;
        }
        //地图缩小
        private void buttonItem15_Click(object sender EventArgs e)
        {
            ICommand command = new ControlsMapZoomOutTool();
            command.OnCreate(axMapControl1.object);
            axMapControl1.CurrentTool = command as ITool;

        }
        //比例放大
        private void buttonItem16_Click(object sender EventArgs e)
        {
            ICommand command = new ControlsMapZoomInFixedCommand();
            command.OnCreate(axMapControl1.GetOcx());
            command.onclick();
        }
        //比例缩小
        private void buttonItem17_Click(object sender EventArgs e)
        {
            ICommand command = new ControlsMapZoomOutFixedCommand();
            command.OnCreate(axMapControl1.GetOcx());
            command.onclick();
        }
        //地图漫游
        private void buttonItem18_Click(object sender EventArgs e)
        {
            ICommand command = new ControlsMapPanTool();
            command.OnCreate(axMapControl1.object);
            axMapControl1.CurrentTool = command as ITool;
        }
        //全图显示
        private void buttonItem19_Click(object sender EventArgs e)
        {
            ICommand command = new ControlsMapFullExtentCommand();
            command.OnCreate(axMapControl1.object);
            command.onclick();
        }
        //添加数据
        private void buttonItem20_Click(object sender EventArgs e)
        {
             FolderBrowserDialog folderBrowserDialog = new FolderBrowserDialog();
            folderBrowserDialog.Description = “请选择数据文件“;
            if (folderBrowserDialog.ShowDialog() == DialogResult.OK)
            {
                //若普通文件,则不操

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

    ..A..H.     70144  2019-06-23 18:02  校园基建管理系统\WindowsFormsApplication3\.vs\WindowsFormsApplication3\v14\.suo

     文件        445  2019-06-19 17:14  校园基建管理系统\WindowsFormsApplication3\WindowsFormsApplication3\app.config

     文件    1350144  2019-06-26 10:31  校园基建管理系统\WindowsFormsApplication3\WindowsFormsApplication3\bin\Debug\WindowsFormsApplication3.exe

     文件        445  2019-06-19 17:14  校园基建管理系统\WindowsFormsApplication3\WindowsFormsApplication3\bin\Debug\WindowsFormsApplication3.exe.config

     文件     284160  2019-06-26 10:31  校园基建管理系统\WindowsFormsApplication3\WindowsFormsApplication3\bin\Debug\WindowsFormsApplication3.pdb

     文件      23168  2019-06-26 10:31  校园基建管理系统\WindowsFormsApplication3\WindowsFormsApplication3\bin\Debug\WindowsFormsApplication3.vshost.exe

     文件        445  2019-06-19 17:14  校园基建管理系统\WindowsFormsApplication3\WindowsFormsApplication3\bin\Debug\WindowsFormsApplication3.vshost.exe.config

     文件        490  2016-07-16 19:44  校园基建管理系统\WindowsFormsApplication3\WindowsFormsApplication3\bin\Debug\WindowsFormsApplication3.vshost.exe.manifest

     文件        246  2019-06-18 09:11  校园基建管理系统\WindowsFormsApplication3\WindowsFormsApplication3\command\Area1.bmp

     文件       5359  2019-06-18 09:15  校园基建管理系统\WindowsFormsApplication3\WindowsFormsApplication3\command\Area1.cs

     文件        326  2019-06-18 09:11  校园基建管理系统\WindowsFormsApplication3\WindowsFormsApplication3\command\Area1.cur

     文件        246  2019-06-17 15:17  校园基建管理系统\WindowsFormsApplication3\WindowsFormsApplication3\command\Measure_length.bmp

     文件       5364  2019-06-17 15:19  校园基建管理系统\WindowsFormsApplication3\WindowsFormsApplication3\command\Measure_length.cs

     文件        326  2019-06-17 15:17  校园基建管理系统\WindowsFormsApplication3\WindowsFormsApplication3\command\Measure_length.cur

     文件      11733  2019-06-21 14:16  校园基建管理系统\WindowsFormsApplication3\WindowsFormsApplication3\Form1.cs

     文件      59740  2019-06-21 14:16  校园基建管理系统\WindowsFormsApplication3\WindowsFormsApplication3\Form1.Designer.cs

     文件      32254  2019-06-21 14:16  校园基建管理系统\WindowsFormsApplication3\WindowsFormsApplication3\Form1.resx

     文件       3761  2019-06-20 17:32  校园基建管理系统\WindowsFormsApplication3\WindowsFormsApplication3\Form2.cs

     文件       7916  2019-06-20 10:15  校园基建管理系统\WindowsFormsApplication3\WindowsFormsApplication3\Form2.Designer.cs

     文件       5817  2019-06-20 10:15  校园基建管理系统\WindowsFormsApplication3\WindowsFormsApplication3\Form2.resx

     文件        405  2019-06-20 14:02  校园基建管理系统\WindowsFormsApplication3\WindowsFormsApplication3\Form3.cs

     文件       1184  2019-06-20 14:02  校园基建管理系统\WindowsFormsApplication3\WindowsFormsApplication3\Form3.Designer.cs

     文件       5817  2019-06-20 14:02  校园基建管理系统\WindowsFormsApplication3\WindowsFormsApplication3\Form3.resx

     文件       5143  2019-06-20 14:12  校园基建管理系统\WindowsFormsApplication3\WindowsFormsApplication3\FormQuery.cs

     文件       6592  2019-06-20 14:12  校园基建管理系统\WindowsFormsApplication3\WindowsFormsApplication3\FormQuery.Designer.cs

     文件       5817  2019-06-20 14:12  校园基建管理系统\WindowsFormsApplication3\WindowsFormsApplication3\FormQuery.resx

     文件       9708  2019-06-18 13:54  校园基建管理系统\WindowsFormsApplication3\WindowsFormsApplication3\FrmAttributesTable.cs

     文件       6195  2019-06-18 08:20  校园基建管理系统\WindowsFormsApplication3\WindowsFormsApplication3\FrmAttributesTable.Designer.cs

     文件       5817  2019-06-18 08:20  校园基建管理系统\WindowsFormsApplication3\WindowsFormsApplication3\FrmAttributesTable.resx

     文件       2880  2019-06-20 09:46  校园基建管理系统\WindowsFormsApplication3\WindowsFormsApplication3\FrmDataAdd.cs

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

评论

共有 条评论