乙個featureclass可以是shapefile feature class、personal geodatabase feature class、file geodatabase feature class等多種選擇。判斷其型別可從以下介面中獲得。
1.featurelayer的話,可以直接從ifeaturelayer2.datasourcetype 取得。
2.featureclass的話,可以qi到idataset.category
取得。根據返回字串的關鍵字進行相應判斷,英文版和中文版後面的關鍵不同,中文版返回中文,如「要素類」等。
layer type
value
personal geodatabase
"personal geodatabase feature class"
sde"sde feature class"
shapefile
"shapefile feature class"
arcinfo or pc arcinfo coverage (annotation)
"annotation feature class"
arcinfo or pc arcinfo coverage (point)
"point feature class"
arcinfo or pc arcinfo coverage (line)
"arc feature class"
arcinfo or pc arcinfo coverage (polygon)
"polygon feature class"
edge
"streetmap feature class"
cad (annotation)
"cad annotation feature class"
cad (point)
"cad point feature class"
cad (line)
"cad polyline feature class"
cad (polygon)
"cad polygon feature class"
engine 刪除FeatureClass 方法
一 幾種刪除方法 1.查詢結果中刪除 private void delete1 ifeatureclass pfeatureclass iqueryfilter pqueryfilter new queryfilterclass pqueryfilter.whereclause objectid d...
獲取和更新FeatureClass的Extent
在featureclass中編輯,刪除,或新增要素後,可用如下的 手動更新一下其extent ifeatureclassmanage pfeatureclass updateextent 獲取圖層extent的方法為 igeodataset pfeatureclass extent 或根據圖層中的所...
輸出FeatureClass中的屬性表
輸出要素類的屬性表 public static void createexcelfile ifeatureclass pfeatureclass,string filepath else 建立行 npoi.ss.usermodel.isheet sheet workbook.createsheet ...