Skip to main content
Solved

How to extract from feature class those entries that have a single value based on one attribute?

  • November 27, 2017
  • 2 replies
  • 65 views

Forum|alt.badge.img

I have a line feature class (with a field SURVEY), which I want to separate into 2 feature classes. In the first one I would have those features that have more than one feature with the same value in the field SURVEY - and in the other one - those features that have a single entry for a value in the field SURVEY.

I believe I could explode the original Feature class by the value in the SURVEY field, then count features in each of them, then test for value "1" and merge if required. But I don't know how to create separate features based on the value in the field.

Just to give you a context: For the first one I will later create convex hulls based on field SURVEY, but for the other one - buffers (as the convex hulls wouldn't look too good for a single lines). But this is not part of the question - as I know how to do it.

Please advise.

Best answer by jdh

If the number of features with the same value are irrelevant (just 1 or more than 1) I would use a Matcher (No geometry, Attributes to Match: SURVEY).

 

If the number of features in each survey group is relevant, I would use an Aggregator, group by survey, with a count attribute set.
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, 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.

2 replies

jdh
Contributor
Forum|alt.badge.img+37
  • Contributor
  • 2002 replies
  • Best Answer
  • November 27, 2017

If the number of features with the same value are irrelevant (just 1 or more than 1) I would use a Matcher (No geometry, Attributes to Match: SURVEY).

 

If the number of features in each survey group is relevant, I would use an Aggregator, group by survey, with a count attribute set.

Forum|alt.badge.img
  • Author
  • 5 replies
  • November 28, 2017

If the number of features with the same value are irrelevant (just 1 or more than 1) I would use a Matcher (No geometry, Attributes to Match: SURVEY).

 

If the number of features in each survey group is relevant, I would use an Aggregator, group by survey, with a count attribute set.
Thanks @jdh. Matcher worked great.