Split Polylines

Running programmatically

Splits the features of a polyline layer.





Before Split

spl_source.jpg (4838 bytes)

Split in all Vertices

spl_vertex.jpg (4367 bytes)

Split in equal segments

spl_segment.jpg (4186 bytes)

Exact length + remainder

spl_length.jpg (4405 bytes)

Running Programmatically

(Go to TOP)


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")


(Go to TOP)