Skip to main content
Solved

Split a line using distances from a table


ottadini
Contributor
Forum|alt.badge.img

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

View original
Did this help you find an answer to your question?

3 replies

ottadini
Contributor
Forum|alt.badge.img
  • Author
  • Contributor
  • January 14, 2019

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


nielsgerrits
VIP
Forum|alt.badge.img+54
  • 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
  • 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)


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