Python Forum
How to give polygons a colour value with python?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to give polygons a colour value with python?
#1
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
Reply
#2
I have never worked with Arcpy before,
but you have six colors! That's a lot, so, theoretically it is possible to solve your problem (even four colors would be sufficient).
Did you see the following thread? It might be helpful.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  3d taxi voronoi mesh creation - cutting/combining polygons help/advice please Chronocide 2 5,968 Sep-23-2016, 07:56 AM
Last Post: Chronocide

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020