Solved
Split a single line at multiple locations
Hi, I am trying to split a single line at multiple locations based on values in a separate table. I also want to be able to start splitting from either end of the line. Any help will be greatly appreciated.
Best answer by takashi
See the transformer help to learn about the Snipper.
View original
This is one possible way to create points. Assume that every record read from the table has ID of associated Line and the location of each condition is described by "distance" attribute of the record.
-----
Add a FeatureMerger to the workspace.
Send the record features to the Requestor port; send the Line features to the Supplier port.
Join On: Line ID to Line ID
Feature Merge Type: Geometry
The FeatureMerger with this setting merges a line geometry to records that have same line ID. If two or more records share same line ID, the Line will be copied for the records.
Then, connect a Snipper to the Merged port, and set the parameters like this:
Snipping Mode: Distance (Value).
Starting Location: distance
Ending Location: distance
The Snipper will output the required points.
<strong>This post is closed to further activity.</strong><br />
It may be a question with a best answer, an implemented idea, or just a post needing no comment.<br />
If you have a follow-up or related question, please <a href="https://community.safe.com/topic/new">post a new question or idea</a>.<br />
If there is a genuine update to be made, please contact us and request that the post is reopened.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.