Solved

Split a line using distances from a table

  • 14 January 2019
  • 3 replies
  • 7 views

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.

icon

Best answer by nielsgerrits 14 January 2019, 11:44

View original

3 replies

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

Userlevel 6
Badge +32

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

Badge +3

@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)

Reply