使用arcpy游标insertcursor 点生成线的问题

nrows_attr = table_attr.nrows
ncols_attr = table_attr.ncols
fc = "D:/data/gdb.gdb/roads"
outFC = "D:/data/gdb.gdb/roads116"

arcpy.CreateFeatureclass_management(os.path.dirname(outFC),
os.path.basename(outFC),
"POLYLINE", fc)
cursor = arcpy.InsertCursor(outFC)
des = arcpy.Describe(outFC)
shapename = des.shapeFieldName
print shapename
array = arcpy.Array()
point = arcpy.Point()
for i in range(1,114):
point.X = round(float(table_coor.cell(i, 7).value), 8)
point.Y = round(float(table_coor.cell(i, 8).value), 8)
point.Z = round(float(table_coor.cell(i, 9).value), 8)
# array.add(point)
array.add(point)
for feat in array:
print feat

row = cursor.newRow()
row.setValue(shapename,array)
#polyline = arcpy.Polyline(array)

cursor.insertRow(row)
我是读取excel的经纬度坐标数据(小数点后保留了8位)add到array里然后使用arcpy.polyline(array),为啥生成的线不在对应的点上,就是点线是偏离线的,并且线的节点书小于点的数量,这是怎么回事呢。array存储的坐标我使用循环查看下是和excel的值是一样的,就是说我读取到array坐标点数和数值是正确的,为啥生的线却是错误的呢,是polyline为改变坐标的小数位吗,谢谢
点生成的线上.PNG
已邀请:

要回复问题请先登录注册