5

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]) ?

6
+50

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, privacy policy and cookie policy

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