Hi jamesfreddyc,thanks for your reply,the insertCursor-function is not the time killer.the function arcpy.Polyline() is fast fithout the Parameter "has_z"for example:Synatx = Polyline (inputs, {spatial_reference}, {has_z}, {has_m})polyline = arcpy.Polyline(array) #this one is fast as expectedpolyline = arcpy.Polyline(array, <none>, True, False) #this one is very very very slow
cursor = arcpy.da.InsertCursor(shpname, ["SHAPE@"]) for f in featureList: cursor.insertRow()
with arcpy.da.InsertCursor(shpname, ["SHAPE@"]) as cursor: cursor.insertRow([featureList])
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.