Change multiple line segments from circular arc to straight?

849
1
05-15-2012 01:44 AM
TuridBrox
Occasional Contributor
I have a data set where many arcs need to be changed to straight lines. I have a report of the data set, showing which lines have anwanted radiuses, on the following form:

OID 3, Målemetode '<Ukjent>', Nøyaktighet '<Ukjent>'   
Partnummer Punktnummer Nord �?st Høyde Radius   
1 6651396,500 612318,560     
2 6651399,907 612312,964     
3 6651403,210 612307,540   
 
OID 5, Målemetode '<Ukjent>', Nøyaktighet '<Ukjent>'   
Partnummer Punktnummer Nord �?st Høyde Radius   
1 6647679,520 617209,770  99,452   
2 6647676,374 617231,726  99,452 
 
OID 6, Målemetode '<Ukjent>', Nøyaktighet '<Ukjent>'   
Partnummer Punktnummer Nord �?st Høyde Radius   
1 6650282,000 609674,690  0,000   
2 6650283,000 609673,440  0,000 


The report gives object ID of the line feature (OID), "Målemetode ukjent" = surveying method unknown, "Nøyaktighet ukjent" = Unknown accuracy, "Partsnummer" (part number in a multipart feature, there should not be any in this data set), "punktnummer" = vertex number, "nord" = north, "øst" = east, "høyde" = height (the data does not have z values), and "radius" I assume you understand. 🙂

As you can see in the example, for straight lines, no radius is given after the east coordinate, and for circular arcs that we want to keep, the radius is a number not equal to 0,000. The radius of on a circular arc is given for both the start- and endpoint of a line segment.

Is there a way to make ArcMAP go through the report, find lines where the radius = 0,000, and then change the corresponding line segments to straight? I am not familiar with Python, but I have a feeling that might come in handy here.

Any ideas are appreciated! Regards, Turid
Tags (2)
0 Kudos
1 Reply
MichaelVolz
Esteemed Contributor
Please correct me if I am wrong, but I believe circular arcs are Bezier curves.  You can use the arcpy.Densify_edit method in python to remove these curves.

Here is the ESRI documentation for this method:

http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//001v00000003000000.htm

I hope this is what you are looking for.
0 Kudos