I am developing a script in which I want to create a multipart line geometry.

For example:

I have one array of points a,b,c and second array of points e,d,f.

I want to create one multipart line where a,b,c defines one part and e,d,f defines the second part.

Is this possible using ArcPy?

Something like arcpy.polyline([a,b,c], [d,e,f]) ?


1 Answer 1


I solved it using this code:

arr1 = arcpy.Array([a,b,c])
arr2 = arcpy.Array([d,e,f])

resArr = arcpy.Array([arr1,arr2])

pL = arcpy.Polyline(resArr)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.