arcgis刪除數據代碼

          Posted on 2008-08-28 11:06 黎民 閱讀(390) 評論(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 © 黎民

          主站蜘蛛池模板: 涡阳县| 新疆| 三穗县| 长垣县| 新竹县| 扎赉特旗| 桐柏县| 西峡县| 汨罗市| 高密市| 沽源县| 楚雄市| 五大连池市| 栖霞市| 西和县| 山东省| 兴城市| 泽库县| 辉南县| 林周县| 营口市| 凌云县| 松桃| 大丰市| 长沙县| 新源县| 三河市| 揭西县| 贺州市| 汉中市| 永胜县| 无极县| 安国市| 成安县| 银川市| 黄大仙区| 历史| 工布江达县| 吴堡县| 南召县| 梨树县|