We have some Annotation points all in one feature class. We are looking to find duplicated annotation text that are close to each other.
We used the NeighbourFinder and attached the attributes from the neighbouring annotation to the base annotation. This allows us to see that, for example, record OD=1 is close to OD=2. Then a Test Filter is used to check if the TextString is the same on the base annotation when compared to the neighbour.
From the results of the TestFilter we have a list of annotations that can be reviewed as it looks like they are close to each other and have the same text string (which may not be needed).
So, for an example, say there are 100 annotation points that come out of the TestFilter. For each of these points, one of the other points in that selection of 100 points is the point it is related to/neighbouring. So, we don't actually need a list of all 100 points, just 1 of the points from each relationship, resulting in 50 points.
Currently we are missing a relationship_id that relates the two points. WIth this, I can then use the Matcher or DuplicateFinder to reduce the selection of 100 points down to 1 instance of each relationship, equaling 50 points. I know that some transformers produce a relationship-type-id, but I am not sure what to use for this scenario. As mentioned, we are currently using the NeighbourFinder. Is there a way to have a relationship_id also added in the output from the NeighbourhoodFinder? Or is there a different transformer that can be used?
Thank you for your time and thoughts.
Using FME 2022.2