Advertisement
Guest User

Untitled

a guest
Dec 8th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. Input_shp = "C:TempLine.shp"
  2. Cursor = arcpy.SearchCursor(Input_shp)
  3. for Feature in Cursor:
  4. Midpoint = Feature.shape.positionAlongLine(0.50,True).firstPoint
  5. print Midpoint.X
  6. print Midpoint.Y
  7.  
  8. toolbox_ETgeowizards = arcpy.GetParameterAsText(0) # Location ET Toolbox (Type: Toolbox)
  9. arcpy.ImportToolbox(toolbox_ETgeowizards)
  10.  
  11. ...
  12.  
  13. arcpy.ET_GPPolylineToPoints(pInFeatureClass, sOutFileName, sExportOption, bRemoveDuplicates)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement