I have a point in polygon. I want to have new polyline shapefile, which will show the shortest distance from the point to polygon edge, according to given angles in the table.

enter image description here

  • I tried "Bearing Distance To Line" in ArcMap, but it asks for distance also Feb 13, 2017 at 21:47
  • Please use the edit button beneath your question to revise it with that requested information.
    – PolyGeo
    Feb 13, 2017 at 21:50
  • 3
    Use bearing distance to line with 5000 km length, clip result by polygon
    – FelixIP
    Feb 13, 2017 at 21:51
  • @FelixIP With only an extra couple of sentences I think your comment would make a great answer.
    – PolyGeo
    Feb 21, 2017 at 21:39

1 Answer 1



enter image description here


arcpy.BearingDistanceToLine_management("aTable","../p2lines.shp", "POINT_X", "POINT_Y", "Distance", "METERS", "Bearing", "DEGREES", "RHUMB_LINE")
arcpy.Clip_analysis("p2lines", "POLYGON","../clipped.shp")
arcpy.AddField_management("clipped", "LENGTH", "DOUBLE")
arcpy.CalculateField_management("clipped", "LENGTH","!Shape!.length", "PYTHON_9.3", "")


enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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