Assign IDs to polylines

149
1
08-06-2019 10:36 AM
AndersHopkins
New Contributor

I am hoping to automate a process which was previously done manually. For this project, streams are being analyzed for how often they intersect with a road. Starting at the stream mouth and going up stream, the stream segment receives an ID number indicating how many road crossings it has encounters. So, the first stream segment (the stream mouth) has a '0', the next segment (having gone under one road) has a '1', the next segment has a '2' and so on (see the picture). This is made tricky by the fact that the streams often time with branch apart, and we want to consider stream segments to occur only at road crossings and not stream branches. This is difficult to achieve since "Split line at point" with split the polylines at both the road intersections (which is a point shapefile) and the stream branches (or vertices). After that, I do not know how to add IDs to line segments in a specific order, and then start over at zero when another stream is started. 

Any help working through this would be much appreciated!

0 Kudos
1 Reply
JoeBorgione
MVP Esteemed Contributor

You may want to consider linear referencing, where a crossing can be considered an event....

https://desktop.arcgis.com/en/arcmap/10.6/tools/linear-ref-toolbox/an-overview-of-the-linear-referen...

I think in the pro environment you need an additional extension for linear referencing:  https://pro.arcgis.com/en/pro-app/help/production/location-referencing-pipelines/multiple-linear-ref...

That should just about do it....
0 Kudos