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
  • 34 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.
View original
Did this help you find an answer to your question?

2 replies

jdh
Contributor
Forum|alt.badge.img+28
  • Contributor
  • 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
  • November 28, 2017
jdh wrote:

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.

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings