Hi All,
I'm attempting to remove some segments (future construction) from various LRS layers using ArcPy, and I'm running into a stumbling block that I'd appreciate some help with.
Using the Overlay Events tool from the Linear Referencing toolbox gives me an overlay of the future construction layer and the layer they're to be removed from.
Then, using a select by attribute query, I can trim this down to just the segments that need to be deleted. These are the records where there are values for both the future construction and the layer that it needs to be removed from (where both records are not null).
I initially thought I could just use the Route IDs from these segments to then remove them from the other layer, but the problem is that the segment to be deleted is a shorter segment than the segment that it's being deleted from. In other words, I can't just remove Route XYZ from my layer because it would remove more than just the future construction segment.
You can see an example of this in the attached screenshots. The red segment needs to be removed from the blue polyline, but that route actually extends beyond the red segment (see the second image with that route selected).
I thought about using an erase and then recalculating the to/from measures, but was unsure if that would cause additional issues or breakages in segments.
Any thoughts or guidance is greatly appreciated! Anyone else done something similar?