0
我一直在尋找一種方法來從python列表中創建shapefile(在下面的情況下,uniqueList)。使用ArcPy從python列表創建shapefile?
基本上,我一直在使用SearchCursor的遍歷shapefile,我想導出結果作爲shapefile ...我試着CopyFeatures ...但它甚至沒有返回一個空白文件(它返回沒有)。
import arcpy
def find_overlaps(input_features, output_features):
uniqueList = []
for row in arcpy.da.SearchCursor(input_features, ('OBJECTID', '[email protected]', 'name')):
foundMatch = False
for row2 in uniqueList:
if row[1].equals(row2[1]):
foundMatch = True
break
if foundMatch == False
uniqueList.append(row)
return uniqueList
## no work ##
arcpy.management.CopyFeatures(uniqueList, output_features)