5

Symbolizing using RGB values from Excel in ArcGIS Desktop? and Symbolizing vector features using RGB values stored in three fields using ArcPy? are questions that distil to whether it is possible to use RGB values in fields of an attribute table to apply colours direct to a feature layer in ArcMap/ArcPy. It seems not to be possible so I advised voting for an existing ArcGIS Idea (for ArcGIS Desktop).

My searches of the GUI and web for the equivalent functionality in ArcGIS Pro have also proved fruitless but I am hoping that I am wrong.

Is it possible to use RGB values stored in a field of a feature class to apply the colour component to symbols used to display them in ArcGIS Pro?

  • That idea (Set symbol color from RGB values in attribute table) does not appear to have had any interest from Esri yet, so I would think it's unlikely at this stage for this type of feature to have been added unfortunately. I've found the ideas Esri have seen and added into Pro now have "Implemented" tags against the idea. There has been no status change at all on this one. – Midavalo Apr 11 '17 at 0:44
  • It is possible in ArcObjects. Although you can access the full range of objects from python you would need to implement your own renderer which requires events that I'm not sure can be triggered/intercepted from python. You could classify as unique Red/Green/Blue or RGB values with a marker symbol then set/overwrite the colours of those symbols using ArcObjects in python though. – Michael Stimson Apr 11 '17 at 1:13
2

I have submitted an ArcGIS Idea to be able to Set ArcGIS Pro symbol color from RGB values in attribute table:

Set symbol color from RGB values in attribute table is a popular idea for ArcMap to have:

The ability to set the fill colour for a symbol from RGB values stored in the attribute table of a shapefile/feature class.

Sometimes an attribute table contains three seperate columns - Red, Green and Blue - that define the fill color to be used to correctly symbolize a feature. Rather than manually going through each symbol it would be convenient to be able to specify the columns in Layer Properties | Symbology and the colors automatically render.

This is seeking precisely the same functionality except to have it available in ArcGIS Pro instead.


Craig Williams of Esri Redlands has since told me that this could be done using the attribute driven symbology that is already present in ArcGIS Pro (I'm using 1.4.1), and he is right!

To do this I added a field for hexadecimal color values, populated it using an update cursor and some code I found at https://stackoverflow.com/a/214657/820534, and followed the attribute driven symbology help to color the polygons using the text field holding their hexadecimal colors.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.