I have a table containing a description field and an integer field which has values along the line. I need to split each line according to the values in the table.
segmentAlongLine requires a start and end value for where the line needs to be cut. The end value is the current row’s measure value, while the start value is the previous row’s end value. After trying to move the cursor back and forth, I decided the best way to achieve this would be to simply store the row’s value in the start variable.
The script inserts the segments into an existing line feature class.