Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >>> import arcpy
- >>> points = []
- >>> for row in arcpy.da.SearchCursor("YourInputLinesFileHere", ["SHAPE@"]):
- ... length = row[0].length
- ... for i in range(0,6):
- ... point = row[0].positionAlongLine(length/5*i)
- ... points.append(point)
- >>> arcpy.CopyFeatures_management(points, 'YourOutputPointsFileHere')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement