Skip to main content

Hello FME Community,

I'm relatively new to FME and encountering some challenges with my current project.

I’m working with a road centreline network where the road segments have varying lengths. Each segment includes start and end chainage attributes. A road may be made up multiple segments so chainages need to be sequential and based on the prior segments end chainage for the next segments start chainage. I'm also generating M-values for these segments. Following the linear referencing guide, I’ve managed to retrieve all necessary values. However, the process required me to use a LineCombiner to combine the segments and a PathSplitter to split them back into individual segments.

The issue arises when I attempt to split the lines back into their original segments. Instead of restoring the original segments, the process results in an explosion of segments, increasing the count to around 16,000.

I’m unsure how to maintain the integrity of the original segments while still achieving the desired M-values and start & end chainages . As a side note all the segments have a unique asset_id that may be of value. Any guidance on resolving this would be greatly appreciated.

 

 

It’s hard to know for sure what your result should looks like, however, if it helps you should be able to use a GeometryPorpertyExtractor to get back those original properties you set on the line segments. 

You can then recombine the paths on an attribute that makes sense. If there isn’t one that makes sense you can use a counter to generate a unique attribute for each of the original lines and set this as an id trait on the original segments.

You should be able to then extract that id and recombine the lines how you want then to be. The measures should remain unchanged.

 


Reply