【问题标题】:How can I edit GIS shapefiles in a geodatabase using ArcPy?如何使用 ArcPy 在地理数据库中编辑 GIS shapefile?
【发布时间】:2021-11-24 02:43:50
【问题描述】:

我在 ArcPy 中有一个代码,它使用字段计算器填充了一些 shapefile 中的一些字段。但这仅在 shapefile 存储在地理数据库之外的文件夹中时才有效。当 shapefile 在地理数据库中时,如何使其工作?

【问题讨论】:

    标签: arcgis arcpy


    【解决方案1】:

    你可以运行函数:

    arcpy.conversion.FeatureClassToFeatureClass() in python 3
    

    arcpy.FeatureClassToFeatureClass_conversion() in python 2.7
    

    把格式改成ESRI格式,没问题。

    您可以在here中查找函数信息

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-06-03
      • 2014-08-19
      • 1970-01-01
      • 1970-01-01
      • 2014-06-06
      • 1970-01-01
      相关资源
      最近更新 更多