I have duplicate line segments with same unique ID but different lengths. I would like to filter out the shorter line and keep the longer line for further transformation.
Solved
Compare and filter out line with shorter length
Best answer by jdh
Calculate the length, sort your features by length and then use a sampler (First 1 feature), grouped on the Unique ID attribute. The longest lines will be from the sampled port, and the shorter duplicate lines will be sent through the unsampled port.
Alternately use a DuplicateRemover in place of the Sampler.
This post is closed to further activity.
It may be a question with a best answer, an implemented idea, or just a post needing no comment.
If you have a follow-up or related question, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.
It may be a question with a best answer, an implemented idea, or just a post needing no comment.
If you have a follow-up or related question, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.