Automating COGO with Python ?

4331
2
10-11-2011 12:54 PM
Labels (1)
MiguelGarriga1
New Contributor III
Is there a way to automate entering COGO descriptions using Python ?  For example, for COGO descriptions that are several pages long.  Is it possible to automate the data entry by parsing these long COGO statements and combining them with Python scripts ?  Either a Python script that accepts a text file as input, or a hardcoded Python script with the pre-parsed COGO descriptions embedded into it.  Just wondering what techniques / best practices are out there.
Tags (2)
0 Kudos
2 Replies
AndrewRyder1
New Contributor

Has this question been answered anywhere else?

I have a similar need. I have hundreds of scanned descriptions that I have managed to apply some text recognition to in order to extract the bearings and distances into an excel table. This process is still a bit cumbersome, and by no means refined.

My problem now is that I would like to be able to import my Line/ Curve Tables (bearings, distances, and curve geometry) directly into ArcGIS, eliminating the need to manually type the information into either the COGO traverse tool or Parcel Fabric Traverse tool. I have been unable to figure out if this is possible.

If anybody has any advise, it would be greatly appreciated.

0 Kudos
DarrenWiens2
MVP Honored Contributor

You can definitely parse your string to make simple geometries like point/line/polygon using arcpy geometries​, however I don't believe it's possible to create true curves - you're stuck with straight line segments.

If straight segments are acceptable and you're having issues parsing your COGO statement/creating geometries, please provide an example of a line/curve table row (I'm not familiar).

0 Kudos