Split Polylines

Running programmatically

Splits the features of a polyline layer.

Inputs

Outputs

Notes:

Examples:

Before Split

Before Split

Split in all Vertices

Split in all Vertices

Split in equal segments

Split in equal segments

Exact length + remainder

Exact length + remainder

Running Programmatically

(Go to TOP)

Parameters

Expression Explanation
Function Name SplitPolylines
<input dataset> A String representing the input layer. Must be of Polyline type.
<output dataset> A String - the full name of the output layer.
<Split Option> Required. A String valid values:
  • "Vertex"
  • "NumberIntervals"
  • "EqualLength"
  • "Length"
  • "NumberVertices"
{Split Tolerance} A Number which value depending on the option defines:
  • "Vertex" - not used
  • "NumberIntervals" - the number of intervals per polyline
  • "EqualLength" - the desired length of the output polylines
  • "Length" - the length of the output polylines
  • "NumberVertices" - the number of vertices per polyline.
{Update Rules} A String representing a list (separator ";") of fields and update rule for each field. Example: "Field1 AddressRange Field2; Field3 Copy; Field4 Proportion"

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, "SplitPolylines", "input dataset",  "output dataset", "Split Option", "Split Tolerance", "Update Rules"])
.NET using ETGWRun.exe StartInfo.FileName = ETGWPath
StartInfo.Arguments = "SplitPolylines" "input dataset" "output dataset" "Split Option" "Split Tolerance" "Update Rules"
.NET using ETGWOutX.dll SplitPolylines(input dataset, output dataset, Split Option, Split Tolerance", Update Rules)
ArcPy arcpy.SplitPolylines(input dataset, output dataset, "Split Option" , "Split Tolerance", "Update Rules")

Notes:

(Go to TOP)