Is there and easy way for me to find just the lines i want? and which transformers should i use?
Is there and easy way for me to find just the lines i want? and which transformers should i use?
Extract the coordinates of start (x0, y0) and end (x1, y1) of every line via CoordinateExtractor (Index = 0 for start, -1 for end). Then you can group lines by x0, y0, x1, y1 when applying the LineOnLineOverlayer.
If you don't care of the orientation (i.e. the order of start and end), arrange (x0, y0), (x1, y1) in the same rule. For example, swap (x0, y0) and (x1, y1) if x0 is greater than x1. And if you need to consider some tolerance, adjust decimal places of every coordinate value via the AttributeRounder.
Hope this helps.
Takashi
if the lines are identical all the way (not just start/end point), you could also consider the Matcher.
David
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.