Converts a polyline data set to a point dataset
Parameters
Expression | Explanation |
---|---|
Function Name | PolylinesToPoints |
<input dataset> | A String representing the input layer. Must be of Polyline type. |
<output dataset> | A String - the full name of the output layer. |
<Option> | A String - the convertion option. Valid values.
|
{Calculate Angle} | A Boolean indicating whether the angle of the polyline at the points location to be calculated and stored in the attribute table. Used only for "Vertex" option. |
{Remove Duplicates} | A Boolean indicating whether the duplicate points are to be removed from the output. Used only for "Vertex" option. |
{Calculate Position} | A Boolean indicating whether the position of the points along the polygon boundary to be calculated. Used only for "Vertex" option. |
{Keep Z} | A Boolean indicating whether if the input has Z values to keep them in the output. |
{Keep M} | A Boolean indicating whether if the input has M values to keep them in the output. |
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, "PolylinesToPoints", "input dataset", "output dataset", "Option", "Calculate Angle", "Remove Duplicates", "Calculate Position", "Keep Z", "Keep M"]) |
.NET using ETGWRun.exe | StartInfo.FileName = ETGWPath StartInfo.Arguments = "PolylinesToPoints" "input dataset" "output dataset" "Option" "Calculate Angle" "Remove Duplicates" "Calculate Position" "Keep Z" "Keep M" |
.NET using ETGWOutX.dll | PolylinesToPoints(input dataset, output dataset, Option,Calculate Angle, Remove Duplicates, Calculate Position, Keep Z, Keep M) |
ArcPy | arcpy.PolylinesToPoints(input dataset, output dataset,"Option", "Calculate Angle", "Remove Duplicates", "Calculate Position", "Keep Z", "Keep M") |
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.