Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. BufferOutput = r'D:/Result/Segmented_Buffer.shp'
  2. CenterLine = r'D:/Result/Segmented_CenterLine.shp'
  3. MAX_width = 1.0
  4. MIN_width = 0.5
  5. centerlines_type = "Inside"
  6. smooth_centerlines = True
  7. arcpy.ET_GPCreateCenterlines(BufferOutput, CenterLine, MAX_width, MIN_width, centerlines_type, smooth_centerlines)
  8.  
  9. Error:
  10. Traceback (most recent call last):
  11. File "...../Convert Segment to Line.py", line 7, in <module>
  12. arcpy.ET_GPCreateCenterlines(BufferOutput, CenterLine, MAX_width, MIN_width, centerlines_type, smooth_centerlines)
  13. TypeError: ET_GPCreateCenterlines() takes no arguments (6 given)
  14. Process finished with exit code 1
  15.  
  16.  
  17. arcpy.CreateCenterlines(BufferOutput, CenterLine, MAX_width, MIN_width, centerlines_type, smooth_centerlines)
  18.  
  19. Error:
  20. Traceback (most recent call last):
  21. File ".../Convert Segment to Line.py", line 7, in <module>
  22. arcpy.CreateCenterlines(BufferOutput, CenterLine, MAX_width, MIN_width, centerlines_type, smooth_centerlines)
  23. AttributeError: 'module' object has no attribute 'CreateCenterlines'
  24. Process finished with exit code 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement