Arijit Bose
Arijit Bose

Reputation: 351

drawing a circular arc using arcpy

I would like to draw a circular arc between two angles and of certain radius using arcpy.Just to clarify it is not the blade but rather only the arc part. I have thousands of such points so need some script to automate the process. Any help highly appreciated.

Upvotes: 0

Views: 2290

Answers (1)

Borealis
Borealis

Reputation: 8480

You can create an arc between two points using the great circle method. Use XY To Line (Data Management) to accomplish this.

# Import system modules
import arcpy
from arcpy import env

# Set local variables
input_table = r"c:\workspace\city2city.dbf"
out_lines = r"c:\workspace\flt4421.gdb\routing001"

#XY To Line
arcpy.XYToLine_management(input_table,out_lines,
                         "LOND1","LATD1","LOND2",
                         "LATD2","GREAT_CIRCLE","idnum")

Upvotes: 2

Related Questions