Cogo Inverse

Running programmatically

Converts a polyline or a polygon data set to a feature class containing only single segmented polylines. For each segment the COGO attributes are calculated and added to the resulting attribute table. The attributes of the original features are copied to the output features. 

Inputs:

Options:

Outputs:

Notes :

Running Programmatically

(Go to TOP)

Parameters

Expression Explanation
Function Name CogoInverse
<input dataset> A String representing the input layer. Must be of Polyline or Polygon type.
<output dataset> A String - the full name of the output layer.
<Point Coordinates> A Boolean - indicates whether the coordinates of the Start and End point for each segment are to be added to the attribute table.
<Z Attributes> A Boolean - indicates whether the Z/M coordinates of the Start and End point for each segment are to be added to the attribute table.
<Direction Type> Required. A String indicating the direction type to be used. Valid values:
  • "NorthAzimuth", "NA"
  • "SouthAzimuth", "SA"
  • "Polar"
  • "QuadrantBearing", "QB"
<Direction Units> Required. A String indicating the direction units to be used. Valid values:
  • "DecimalDegrees", "DD"
  • "DegreesMinutesSeconds", "DMS"
  • "Radians"
  • "Gradians""
  • "Gons", "QB"
{Linear Precision} An Integer representing the number of places after the decimal point for the output linear measurements
{Angular Precision} An Integer representing the number of places after the decimal point for the output angular measurements.

Running the function

ETGWPath used in the table below is the  full path to ETGWRun.exe (E.G. "C:\Program Files\ETSpatial Techniques\ETGeo Wizards\ETGWRun.exe")

Language Syntax
Python subprocess.call([ETGWPath, "CogoInverse", "input dataset", "output dataset", "Point Coordinates", "Z Attributes", "Direction Type", "Direction Units", "Linear Precision", "Angular Precision"])
.NET using ETGWRun.exe StartInfo.FileName = ETGWPath
StartInfo.Arguments = "CogoInverse" "input dataset" "output dataset" "Point Coordinates" "Z Attributes" "Direction Type" "Direction Units" "Linear Precision" "Angular Precision"
.NET using ETGWOutX.dll CogoInverse(input dataset, output dataset, Point Coordinates, Z Attributes, "Direction Type", Direction Units, "Linear Precision", Angular Precision)
ArcPy arcpy.CogoInverse(input dataset, output dataset, "Point Coordinates" , "Z Attributes", "Direction Type", "Direction Units", "Linear Precision", "Angular Precision")

Notes:

(Go to TOP)