ArcGIS 点要素新增点

 

 

            IFeatureLayer layer = FrmMain.m_mapControl.get_Layer(0) as IFeatureLayer;
            IFeatureClass featureClass = layer.FeatureClass;

            IFeature feature = featureClass.CreateFeature();
            IPoint point = new PointClass();

            float H = float.Parse(txtX.Text.ToString());
            float Z = float.Parse(txtY.Text.ToString());
            point.PutCoords(H, Z);


            feature.Shape = point;

            feature.Store();
            FrmMain.m_mapControl.ActiveView.Refresh();


posted @ 2017-04-16 11:39  wenglabs  阅读(2172)  评论(0编辑  收藏  举报