There's a couple ways of doing this. One would be to use a CoordinateExtractor on one of the two sets to store the coordinates of the points in attributes. Then a FeatureMerger with that set as the Supplier and the other set as the Requestors. Join on the ID they have in common and have it merge attributes only. So you'll end up with the points from the Requestor set that have received the attributes with coordinates from the Supplier set.
Then run them through a VertexCreator, set its mode to Add Point and the X/Y (and Z) values taken from the attributes.
Another way to do this is to feed both tables to a LineBuilder transformer. Set it to group by the common id attribute.
There's a couple ways of doing this. One would be to use a CoordinateExtractor on one of the two sets to store the coordinates of the points in attributes. Then a FeatureMerger with that set as the Supplier and the other set as the Requestors. Join on the ID they have in common and have it merge attributes only. So you'll end up with the points from the Requestor set that have received the attributes with coordinates from the Supplier set.
Then run them through a VertexCreator, set its mode to Add Point and the X/Y (and Z) values taken from the attributes.
Thanks! The result I'm after is a new dataset consisting of lines, connecting points from the different datasets. The VertexCreator returns a dataset of points, but how do I use these points to generate a line between them?
Thanks! The result I'm after is a new dataset consisting of lines, connecting points from the different datasets. The VertexCreator returns a dataset of points, but how do I use these points to generate a line between them?
If you set the mode of the VertexCreator to "Add point" rather than the default "Replace with point" it should create a line from the original point to the one specified in the coordinate attributes.
@a_ericsson FeatureMerger has a little know (or used) function that will allow you to build the line from points.