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.
Page 1 / 1
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?
Could you maybe post a small sample dataset?
could you please provide us with a screenshot showing the lines?
Not sure how to post a shapefile sample? Any help?
sample.png
sample.png
Thanks, please post a screeshot of the lines as well.
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.
- LineJoiner (called LineCombiner in FME 2017+): Set List Name, e.g. "_list".
- ListSorter: Sort the list by MIN_No numeric ascending.
- 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.