Skip to main content

Hello FME Community,

I need to divide a line FC into 100 m segments. I can reach that with the IterativeSnippet transformer, but I have an issue with the leftovers; I don't want to divide the leftovers.

 

In another way, I need to keep the leftover to be joined or merged with the last segment to avoid generating segments with 0. X values or other small values like 1 or 2 meters.

Is there any possible way to reach this in FME? 

The iterative snipper gives you the segment number, so you can take the last two segments (use a sampler set to take the last two features)  and use the linecombiner to combine

 

 

 

This approach would also then allow you to set a min length for it to be combined. You probably don’t want to combine a line that's 97m to a line that's 100m


Reply