Select to view content in your preferred language

How to give polygons a colour value with python?

421
0
03-21-2019 04:07 AM
FabianZentner
Emerging Contributor

Hey guys,

I'm working with arcpy since a few weeks and I have question and hopefully somebody knows how to deal with it.

I have a feature class with polygons, for example the second administration level for France. The feature class has an attribute which is called "colour_value". I have a list of six colour values like [59,63,70,72,78,82]. I want to give all polygons one of these values, which sounds easy, but it should be like that: the polygon with the 59 shouldn't have a neighbour polygon which has also the 59, and this rule also for the other values. How can I do that?

Thanks for help in advance.

Greets,

Fabian

0 Replies