delete codes to index FeatureCode field

This commit is contained in:
HKS 2023-05-27 16:25:02 +08:00
parent 9482f13dce
commit cb86059c30
2 changed files with 2 additions and 2 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
/log/
/NEWGDB/

View File

@ -198,8 +198,6 @@ def transform_to_feature_class(fc_name, out_location):
out_fc = fc_name if out_fc == "" else out_fc
try:
add_log_info(str(fc_name) + "-->" + str(out_fc))
# 每个图层的FeatureCode字段加索引
arcpy.AddIndex_management(fc_name, "FEATURECODE", "FeatureCode_Index", "NON_UNIQUE", "NON_ASCENDING")
if arcpy.Exists(os.path.join(out_location, out_fc)):
# 先转换到内存工作空间
# arcpy.FeatureClassToFeatureClass_conversion(fc_name, "in_memory", "buffer", expression)