Skip to main content
Question

Linear Referencing: Calculating new From-To values after segmentation


harryfuentes
Contributor
Forum|alt.badge.img+3

Hi

 I’m trying to combine some linear events with a routes geometry. The segmentation works fine. The only problem I have is that the from-to values are no longer correct in the new geometry. How can I update them?

 

 

2 replies

ctredinnick
Supporter
Forum|alt.badge.img+19
  • Supporter
  • February 22, 2024

Before you split the lines, add a MeasureGenerator, starting from the current FROM value for the line. That will add measures to the line geometry such that every vertex has a measure for how far along the line it is. Check it in the inspector to see. Then after the overlayer, do two MeasureExtractors, one of the 0th index, and one for the -1st (last) index, and you’ll get the new from/to distance for the new split lines.


harryfuentes
Contributor
Forum|alt.badge.img+3
  • Author
  • Contributor
  • February 23, 2024

Thank you, that worked perfectly


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings