C# AE 插入要素Feature

插入要素的一种方法

 
       //try
                    //{
                    //    IFeature pFeat = null;
                    //    IFeatureBuffer pFeatBuf = pfc.CreateFeatureBuffer();
                    //    pFeat = pFeatBuf as IFeature;
                    //    IFeatureCursor pFeatCur = pfc.Insert(true);
                    //    IPolyline pNewLine = pVerticalLine as IPolyline;
                    //    IGeometry pGeo = pNewLine as IGeometry;//pNewConstructEnrpytedLine
                    //    dataProcessingClass.MakeZMAware(pGeo);
                    //    pFeat.Shape = pGeo;
                    //    pFeatCur.InsertFeature(pFeatBuf);
                    //}
                    //catch (Exception ex2) { MessageBox.Show("插入加密线条Feature失败" + ex2.StackTrace); }

  

posted @ 2019-01-13 21:00  marvelousone  阅读(853)  评论(0编辑  收藏  举报