Skip to main content
Question

How to split Line without Leftover?

  • July 24, 2025
  • 1 reply
  • 43 views

gisuser
Participant
Forum|alt.badge.img+4

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? 

1 reply

hkingsbury
Celebrity
Forum|alt.badge.img+56
  • Celebrity
  • July 24, 2025

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


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