コード例 #1
0
        //打开地图
        private void OpenMxdFile()
        {
            AboutOpenData OpenMapFile = new AboutOpenData();

            OpenMapFile.IfSaveTheCurrentMap(axMapControl1);
            OpenMapFile.Add_Any_layer("打开地图文档", "地图文档(*.*)|*.*", 6, axMapControl1);
        }
コード例 #2
0
        //add cad file
        private void AddCADFile_Click(object sender, EventArgs e)
        {
            AboutOpenData OpenMapFile = new AboutOpenData();

            OpenMapFile.IfSaveTheCurrentMap(axMapControl1);
            OpenMapFile.Add_Any_layer("添加CAD数据", "CAD File|*.cad", 5, axMapControl1);
            IfControlEnabled();
        }
コード例 #3
0
        //添加个人数据库文件
        private void AddMdbFile_Click(object sender, EventArgs e)
        {
            AboutOpenData OpenMapFile = new AboutOpenData();

            OpenMapFile.IfSaveTheCurrentMap(axMapControl1);
            OpenMapFile.Add_Any_layer("添加个人数据库", "个人数据库|*.gdb|地理数据库|*.mdb", 4, axMapControl1);
            IfControlEnabled();
        }
コード例 #4
0
        //添加lyr文件
        private void AddLayerDadaFile_Click(object sender, EventArgs e)
        {
            AboutOpenData OpenMapFile = new AboutOpenData();

            OpenMapFile.IfSaveTheCurrentMap(axMapControl1);
            OpenMapFile.Add_Any_layer("添加Lyr数据", "ArcGIS Lyr File|*.lyr", 3, axMapControl1);
            IfControlEnabled();
        }
コード例 #5
0
        //添加shapefile图层
        private void AddShapefile_Click(object sender, EventArgs e)
        {
            AboutOpenData OpenMapFile = new AboutOpenData();

            OpenMapFile.IfSaveTheCurrentMap(axMapControl1);
            OpenMapFile.Add_Any_layer("添加矢量数据", "ShapeFile|*.shp", 1, axMapControl1);
            IfControlEnabled();
        }
コード例 #6
0
        //打开Pmf类型地图文档
        private void AddpmfFile_Click(object sender, EventArgs e)
        {
            AboutOpenData OpenMapFile = new AboutOpenData();

            OpenMapFile.IfSaveTheCurrentMap(axMapControl1);
            OpenMapFile.Add_Any_layer("打开地图文档", "地图文档(*.pmf)|*.pmf", 6, axMapControl1);
            IfControlEnabled();
        }
コード例 #7
0
        //打开栅格数据
        private void AddRasterFile_Click(object sender, EventArgs e)
        {
            string        rasterclass = "JPEG JPG File|*.jpg;*.jpeg|位图File|*.bmp|TIFF TIF File|*.tiff;*.tif|PNG File|*.png|EMF File|*.emf|AI File|*.ai|PDF文档|*.pdf|GIF File|*.gif|All Raster File|*.*";
            AboutOpenData OpenMapFile = new AboutOpenData();

            OpenMapFile.IfSaveTheCurrentMap(axMapControl1);
            OpenMapFile.Add_Any_layer("添加栅格数据", rasterclass, 2, axMapControl1);
            IfControlEnabled();
        }