Skip to main content

I'm wondering if it's possible in FME to perform a dynamic segmentation on an LRS event with an offset to the output line geometry.

 

What I mean by this is I'd like the result geometry to be beside the base geometry, parallel to it and a distance away.

 

For example, here's my base LRS geometry, going from 0 to 10 meters.

lrs_base 

Here's the event I'd like to perform the dynamic segmentation on, with a start measure of 0 and and end measure of 5.

dynamic_segmentation_current 

This is what I'd to have. A line going from 0 to 5 meters, located to the left of the base LRS geometry.

dynamic_segmentation_desired 

Is it possible to do something similar to this in FME?

Hi @tfcw​ ,

 

This is possible in FME and actually not that difficult. For the first part, the dynamic segmentation, you'll want to use a Snipper transformer. With this you can select how much of the existing line you want to duplicate, using distance, percentage or a few other options.

Next, if you use a HorizontalAngleCalculator custom transformer from the FME Hub, you can calculate the angle of your line. This will be needed in the next transformer, the Offsetter. Make sure you add 90 degrees to the angle to offset the line perpendicular to the first line. See the images for details. I hope this helps.

snipperlines


Hi @tfcw​ ,

 

This is possible in FME and actually not that difficult. For the first part, the dynamic segmentation, you'll want to use a Snipper transformer. With this you can select how much of the existing line you want to duplicate, using distance, percentage or a few other options.

Next, if you use a HorizontalAngleCalculator custom transformer from the FME Hub, you can calculate the angle of your line. This will be needed in the next transformer, the Offsetter. Make sure you add 90 degrees to the angle to offset the line perpendicular to the first line. See the images for details. I hope this helps.

snipperlines

Ah that's perfect thank you! I can't believe I never searched for "Offset" in the transformers


Reply