Skip to main content

I have Shapefile lines with start and end point data attributed to them, but some of the lines got broken resulting in two lines that should be connected with start and end point data attributed for each section. I am using the Snapper and LineJoiner to connect the lines, but I am not sure how to get the correct end and start times for the full line.

Could you maybe post a small sample dataset?


Hi @pebble, is there an attribute that is common to the segments of the broken line? How do you know which segment belongs with which segment?
Hi @pebble, is there an attribute that is common to the segments of the broken line? How do you know which segment belongs with which segment?
Most of the split lines have a common ID number, but a few have different ID numbers.

 

 


Could you maybe post a small sample dataset?

Not sure how to post a shapefile sample? Any help?

 

 


could you please provide us with a screenshot showing the lines?

 

 


Not sure how to post a shapefile sample? Any help?

 

 

just compress the files into a single zip file and upload it.

 

 


sample.png

 

 


sample.png

 

 

Thanks, please post a screeshot of the lines as well.

 

 


Thanks, please post a screeshot of the lines as well.

 

 

The lines are above the table in the png file.

 

 

 


Sort by ID (as you did )

Listbuilder grouped by ID.

ListRangeExtractor on Min and max time. (2 ListRangeExtractors).

Take care to rename the default values for the relevant Resulting Minimum/Maximum Attribute.


Hi @pebble, if the numerical order of MIN_No and MAX_No is synchronized with the temporal order of MIN_DATE and MAX_DATE, this would also be a possible way.

  1. LineJoiner (called LineCombiner in FME 2017+): Set List Name, e.g. "_list".
  2. ListSorter: Sort the list by MIN_No numeric ascending.
  3. AttributeRenamer: Rename _list{0}.MIN_No to MIN_No, _list{1}.MAX_No to MAX_No, _list{0}.MIN_DATE to MIN_DATE, and _list{1}.MAX_DATE to MAX_DATE.


Reply