Select to view content in your preferred language

Select Similar

1262
9
10-19-2023 07:33 AM
Status: Open
Labels (1)
RSL
by
New Contributor II

It would be useful if you could quickly select all matching features based on a field attribute. For example, in the image below I want to select the polygons that are green, but I don't want to have to list all possible entries in a Select by Attribute process, I'd like to select a few manually and then be able to select all matching features with the same field attribute.

 

Screenshot 2023-10-19 152857.png

9 Comments
leahmaps

Do you have a common attribute that makes all of the polygons green?

LindaWilliams1

I had this come up just this week, and I was thinking it would be helpful (and quicker) to have the ability to find all other similar features without having to open up select by attribute. My use case is for streets, where some cities have non-contiguous pieces of streets that share the same name (the common attribute) but are found in small sections across the city. I would select a street in a small area of work and then need to know if there are other sections of street across the city with the same street name. Once all sections with the same name are selected, I can right click to zoom to the selection and view the locations of all the sections.

LindaWilliams1

In my use case this tool does too much. I need a match for only the current street name selected and not an output layer containing all matches. With fewer clicks/entries Select by Attribute in the Attribute Table creates my temporary selection of the same named streets for viewing. I can think of other instances where this tool would be helpful, so thanks for bringing it to my attention.

leahmaps

Have you done something like, "Select by Attribute" and then utilized the different SQL options? 

leahmaps_0-1697746139935.png

This way you can try to find similar features based on text contained in the attribute fields.

 

JonathanNeal

@leahmaps I was thinking doing the includes the value(s) option too, but adding an enhancement to use only selected.

JonathanNeal_0-1697747415018.png

 

 

leahmaps

@JonathanNeal, wait, but isn't that how includes work? In the screenshot above, any attribute that includes "two" in the name field would be selected. 

Additionally, above in the selection type, you could choose to replace "New Selection" with another option to fulfill the selection.

Does that solve anything, or am I missing what you were trying to get across?

leahmaps_0-1697804116180.png

 

JonathanNeal

@leahmaps Apologies, don't mean to confuse or be unclear. 

The user's intent was "two" should not show up since it is not selected, then doing a new selection select the rest of the features with those attributes.

  1. Select these values on the map.
  2. Select the rest of the values of those I currently have selected.

My thought is that we can add a new toggle named "Selected Values" under "Values" (Where I have highlighted) so that only the value "one" would show up in the dropdown and "two" would be filtered out.  The internal discussion on this one is leaning towards a script tool which we can provide shortly.

The selection type options wouldn't be helpful to finding the distinct attributes that are in the currently selected features.  

JonathanNeal

@RSL Here you go: https://www.arcgis.com/home/item.html?id=cfb81e51a02743cbb0e8a2d6dcfdc5c9
(Thanks @DrewFlater )

Usage:

  1. Select your features on your map.
  2. Run the tool using the layer with the selections and use the fields you want it to match.
    Note: in my screen shot I have ObjectId 1 selected and after running the tool both objectId 1 and objectId 3 are selected using the Name field.

JonathanNeal_0-1697850973703.png