Пример #1
0
        private void 叠加分析ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            GDBInput pGDB = new GDBInput();

            IWorkspace pWs = pGDB.GetWorkspace("D:\\第二次公开课\\IDW\\JiAn", GISDesign.GDBInput.GDBType.SHP);

            IFeatureClass pFeatureClass = pGDB.GetFeatureClass(pWs as IFeatureWorkspace, "BoundMask");

            IFeatureClass pFt = pGDB.GetFeatureClass(pWs as IFeatureWorkspace, "Bound");

            IFeatureClass pFt1 = new InterSect().Intsect(pFeatureClass, pFt, "D:\\第二次公开课\\IDW\\JiAn", "test11");

            IFeatureLayer pFeatureLayer = new FeatureLayerClass();

            pFeatureLayer.FeatureClass = pFt1;

            axMapControl1.Map.AddLayer(pFeatureLayer as ILayer);

            axMapControl1.ActiveView.Refresh();
        }
Пример #2
0
        private void 叠加分析ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            GDBInput pGDB = new GDBInput();

            IWorkspace pWs = pGDB.GetWorkspace("D:\\第二次公开课\\IDW\\JiAn", GISDesign.GDBInput.GDBType.SHP);

            IFeatureClass pFeatureClass = pGDB.GetFeatureClass(pWs as IFeatureWorkspace, "BoundMask");

            IFeatureClass pFt = pGDB.GetFeatureClass(pWs as IFeatureWorkspace, "Bound");

            IFeatureClass pFt1 = new InterSect().Intsect(pFeatureClass, pFt, "D:\\第二次公开课\\IDW\\JiAn", "test11");

            IFeatureLayer pFeatureLayer = new FeatureLayerClass();

            pFeatureLayer.FeatureClass = pFt1;

            axMapControl1.Map.AddLayer(pFeatureLayer as ILayer);

            axMapControl1.ActiveView.Refresh();
        }