Select to view content in your preferred language

Split polylines at polygons boundaries

5633
3
04-12-2010 05:58 AM
GraziaZulian
Emerging Contributor
Hi
Somebody knows a code for splitting Lines (streets) at the polygons boundaries (administrative units)?
thanks
3 Replies
BenHenson
New Contributor
Did you ever figure out a solution for this? I am currently doing this via the VERY tedious method of splitting each line individually at the town boundary. THe problem is that it is nearly impossible to split the line exactly (like snap) on the boundary. It seems like there should be a simple solution (ie, use town boundary as a "cookie cutter" to snap).
EricaBickford
Emerging Contributor
Also looking for a solution to this.  I need to split road polylines by a grid polygon's boundaries.  Doing road by road is not an option as my road data covers several states (over 400,000 segments)...
0 Kudos
EricaBickford
Emerging Contributor
Hi all,

I solved my problem, not sure if it will solve yours.

I used the "split" function to cut my polyline with a grid polygon such that all polyline segments ended at the boundaries in the grid.  Should work for administrative boundaries or other shapefiles....

Don't forget you'll need to re-calculate the polyline segment lengths after this--use "calculate geometry" and make sure you're in the projection/units you want.
0 Kudos