• arcpy搜索和更新要素


    https://gis.stackexchange.com/questions/90372/using-arcpy-da-insertcursor-to-insert-entire-row-that-is-fetched-from-search-cur

    # Get field objects from source FC # dsc = arcpy.Describe(sourceFC) fields = dsc.fields # List all field names except the OID field and geometry fields # Replace 'Shape' with 'SHAPE@' # out_fields = [dsc.OIDFieldName, dsc.lengthFieldName, dsc.areaFieldName] fieldnames = [field.name if field.name != 'Shape' else 'SHAPE@' for field in fields if field.name not in out_fields] # Create cursors and insert new rows # with arcpy.da.SearchCursor(sourceFC,fieldnames) as sCur: with arcpy.da.InsertCursor(targetFC,fieldnames) as iCur: for row in sCur: iCur.insertRow(row)
  • 相关阅读:
    ZOJ4125 Sekiro
    ZOJ4118 Stones in the Bucket
    ZOJ4115 Wandering Robot
    ZOJ4113 Calandar
    【递归】N皇后问题 和 2n皇后问题 dfs
    7-18
    7_13
    二维前缀和
    64位整数乘法
    【分治】魔法石的诱惑
  • 原文地址:https://www.cnblogs.com/geosnoob/p/14503508.html
Copyright © 2020-2023  润新知