我试图通过vertXY方程运行各个顶点,但是无法让它正确运行,有什么建议吗?
close()
这是我的错误消息:
for row in arcpy.da.SearchCursor(input_shp, ["OID@", "SHAPE@"]):
print("Feature {}:".format(row[0]))
partnum = 0
for part in row[1]:
print("Part {}:".format(partnum))
for pnt in part:
if pnt:
verticeX = ("{}".format(pnt.X))
verticeY = ("{}".format(pnt.Y))
print verticeX, verticeY
else:
print("Interior Ring:")
for vert in pnt:
if vert:
vertXY = (verticeX*verticeY+1)-(verticeX+1*verticeY)
print VertXY
partnum += 1
print 'step 1c'