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.
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:
|
<Direction Units> | Required. A String indicating the direction units to be used. Valid values:
|
{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. |
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:
<> - required parameter
{} - optional parameter
The argument separator for StartInfo.Arguments is space. If a string might contain a space, you need to double quote it.