Advertisement
Guest User

Untitled

a guest
Oct 20th, 2014
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. >>> import arcpy
  2. >>> points = []
  3. >>> for row in arcpy.da.SearchCursor("YourInputLinesFileHere", ["SHAPE@"]):
  4. ... length = row[0].length
  5. ... for i in range(0,6):
  6. ... point = row[0].positionAlongLine(length/5*i)
  7. ... points.append(point)
  8. >>> arcpy.CopyFeatures_management(points, 'YourOutputPointsFileHere')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement