If you add Counter at the start of your process you can give each original feature a unique id (if there's none in the original dataset, otherwise you can use that one) which you can use later on to merge it all back again.
the counter should be after the chopper, but as you can see there is 2 choppers in the workflow. One for the generalized lines and one for the original.
the counter should be after the chopper, but as you can see there is 2 choppers in the workflow. One for the generalized lines and one for the original.
No, before, so that all features going into the chopper have that id and retain it after chopping
No, before, so that all features going into the chopper have that id and retain it after chopping
No, because all chopped segment will have the same id, and that's not what I want.
As you can see in the workflow there is 5 generalized segments which will receive different attributes values and I want to bring those values back to the 8 original segments.
@bgeorges You can also preserve and recover original geometries using the GeometryExtractor and GeometryReplacer transformers
@bgeorges You can also preserve and recover original geometries using the GeometryExtractor and GeometryReplacer transformers
I dont think that can achieve what I need. Maybe my question is not clear enough.
Thank you for your suggestion though.
No, before, so that all features going into the chopper have that id and retain it after chopping
Yes, so all the chopped segments from line #1 still know they were originally part of line #1, so you can merge attributes back and forth using that id. Isn't that what you want?
Because your Generalization algorithm does not create new vertices, you can use the starting point of each segment for your association.
Extract the coordinates of the starting points of all segments. Left join on these coordinates.
The original segments that do not share a starting point with the generalized sections will have null vallues in the attributes. In the AttributeManager, these attributes are filled with the attribute value of the previous feature (with Enable Adjacent Feature Attributes).
Because your Generalization algorithm does not create new vertices, you can use the starting point of each segment for your association.
Extract the coordinates of the starting points of all segments. Left join on these coordinates.
The original segments that do not share a starting point with the generalized sections will have null vallues in the attributes. In the AttributeManager, these attributes are filled with the attribute value of the previous feature (with Enable Adjacent Feature Attributes).
Sounds very promising! Thank you for the suggestion! Great idea!