arcgis刪除數(shù)據(jù)代碼

          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 © 黎民

          主站蜘蛛池模板: 景德镇市| 长武县| 师宗县| 张家界市| 获嘉县| 宿松县| 凤山市| 桑植县| 澎湖县| 奉贤区| 漳州市| 宝兴县| 家居| 临西县| 特克斯县| 花莲市| 绥阳县| 孝感市| 兖州市| 桦甸市| 明水县| 克拉玛依市| 馆陶县| 通渭县| 修武县| 察雅县| 浦东新区| 云林县| 清流县| 类乌齐县| 洮南市| 普格县| 资阳市| 策勒县| 商都县| 太仓市| 陆丰市| 佛山市| 茌平县| 淮滨县| 定远县|