AE提供多個gp工具能夠實現FeatureClass導出:工具
一、Feature Class To Shapefile:導出成shp文件時若是字段名稱超過10個字節長度會被默認截斷string
二、Feature Class to Geodatabase:字段中包含esriFieldType.esriFieldTypeString類型,若是字段對應的值特別長,可導出,不報錯,可是實際filegdb中無內容it
三、FeatureClassToFeatureClass:可實現導出成shp或是filegdb,若是字段中包含esriFieldType.esriFieldTypeString類型,須要設置字段的長度,代碼以下:class
public static IField CreateTextField(string pName, string pAliasName, int aWidth) file
{ gdb
FieldClass class2 = new FieldClass(); static
IFieldEdit edit = class2; db
edit.Name_2 = pName.ToUpper(); tab
edit.AliasName_2 = pAliasName; di
edit.Type_2 = esriFieldType.esriFieldTypeString;
edit.Length_2 = aWidth;
return class2;
}
而後再導出至filegdb,導出成功!