Skip to main content
Solved

Split a line using distances from a table

  • January 14, 2019
  • 3 replies
  • 41 views

ottadini
Supporter
Forum|alt.badge.img+5

I want to split a line using distances along that line that are from a separate data table:

 

startendcategorylength02.3Cat 22.32.315.1Cat 312.815.126.6Cat 211.526.627.3Cat 50.727.329.9Cat 22.629.931Cat 51.13133.3Cat 22.333.334.3Cat 5134.339.7Cat 35.4

 

I am probably just tired, but I can't seem to work this out.

Best answer by nielsgerrits

MeasureGenerator to create measure on line.

FeatureMerger to join line to records in table.

Snipper to select a part of the line based on the measure.

MeasureGeneratorSnipper2018.fmw

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

ottadini
Supporter
Forum|alt.badge.img+5
  • Author
  • Supporter
  • 28 replies
  • January 14, 2019

I meant to add: and copy the Category attribute across to the line segments created.


nielsgerrits
VIP
Forum|alt.badge.img+60
  • 2937 replies
  • Best Answer
  • January 14, 2019

MeasureGenerator to create measure on line.

FeatureMerger to join line to records in table.

Snipper to select a part of the line based on the measure.

MeasureGeneratorSnipper2018.fmw


gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • 2252 replies
  • January 14, 2019

@ottadini

Or...

 

Count records (counter), clone line by this value. Merge to table. Snip by start and end. (4 transformers)

Or

Unconditionally merge line to records and explode. Snipp by start and end. (3 transformers)

 

Or (least favorable unless done previously once); use iterative snipper (create one for future use)

 

(With multiple lines use GRoup By)