arcgis刪除數據代碼

          Posted on 2008-08-28 11:06 黎民 閱讀(397) 評論(0)  編輯  收藏 所屬分類: GIS原理
          Private Sub delSelFeatures()
              Dim pMxdoc As IMxDocument
              Dim pFl As IFeatureLayer
              Set pMxdoc = ThisDocument
              Set pFl = pMxdoc.SelectedLayer
              Dim pFeatureCursor As IFeatureCursor
              Dim pFeatureSel As IFeatureSelection
              Set pFeatureSel = pFl
             
              pFeatureSel.SelectionSet.Search Nothing, False, pFeatureCursor
             
              Dim pFeature As IFeature
              Set pFeature = pFeatureCursor.NextFeature
              Do While Not pFeature Is Nothing
                  pFeature.Delete
                  Set pFeature = pFeatureCursor.NextFeature
              Loop
          End Sub

          posts - 57, comments - 3, trackbacks - 0, articles - 1

          Copyright © 黎民

          主站蜘蛛池模板: 顺平县| 毕节市| 广水市| 阿拉尔市| 依兰县| 南木林县| 托里县| 灵璧县| 汶川县| 维西| 探索| 瓦房店市| 奉节县| 西昌市| 内江市| 永靖县| 香河县| 斗六市| 呼图壁县| 河北区| 加查县| 南宁市| 横峰县| 五寨县| 涪陵区| 涡阳县| 乌鲁木齐市| 娱乐| 平远县| 昌图县| 贵港市| 涞源县| 安远县| 镇雄县| 长兴县| 枝江市| 永寿县| 霸州市| 临猗县| 郎溪县| 尉氏县|