Select to view content in your preferred language

Select by color

1303
5
05-05-2012 02:31 AM
hazemhafez
Emerging Contributor
Dear Sir,

hello,

I want to select features by color in Arcmap AS select by attributes

ex: select all feature which have the RED color

Thank you
Tags (2)
0 Kudos
5 Replies
Zeke
by
Honored Contributor
I don't know if you can select by symbology. Why not just select on whatever attribute the symbology is based on? For example, if your symbology has a field Voted for states that voted Republican red, Democratic blue, other parties green, and you want to select all red states, just select for Republican in the field Voted.
0 Kudos
hazemhafez
Emerging Contributor
Hello,
Thank you for you'r Reply
but I want to select the feature based on color not data(attribute)
Please, if you have an idea for that sent to me.
thanks for you'r effort

hazem
0 Kudos
Zeke
by
Honored Contributor
Well, where is your feature getting it's color from? You're symbolizing by something, whether the whole feature class or shapefile has one color or different features in the feature class/shapefile have different colors. If you're using one color for all features, then just select all the records in that feature class. That's probably not what you want, so you're symbolizing different features in a feature class with different colors based on values in one or more attribute fields. You'd select red, blue, green, etc. records using the same criteria to you use to symbolize them.

Afaik, there's no way to select directly on the color itself. The color isn't part of the feature class or the feature itself. Maybe you could do it in Python by checking the RGB values, I don't know. I suppose you could add a field called Color, give it the text value 'red', 'blue', etc. and select on that, but that's still an attribute selection and a poor way to go about it. A .lyr file retains the symbology, but I still don't know how you'd select by color.

I apologize if I misunderstand your question, but I don't see any way short of possibly some kind of script (and don't know about that) to do what I think you want. Maybe there is a way and someone else will jump in with a method.
0 Kudos
RAVI_SANKARKATTA
Emerging Contributor
Hi,

Shall i know whether you are looking for selection of Vector data or Raster based in color.

Regards,
RAVI
0 Kudos
hazemhafez
Emerging Contributor
Hello,
Thank you for you'r Reply again
  thanks for you'r effort
FRISTLY, I want to select by color directly or
when you import any CAD file and convert it to shapefile or GDB  and open an attribute data table you will find the field called  "color" and have a color number
you can use it to select by color AS blue=5 , RAD=1, balack=7
but I want a short method

ie: the data is vector data not RASTER

thanks very much
hazem
0 Kudos