AnsweredAssumed Answered

Applying Labels - CE 2017

Question asked by Mortensen91 on Jul 13, 2017
Latest reply on Sep 18, 2017 by CLau-esristaff

Hello

 

I have seen that the new CE gives the possibility to use labels, as a way of communicating between different start shapes. I'm trying to write a script which lets me color the white squares according to the color of the shapes that is next to the it.

 

 

this is the rule so fare: 

 

attr elevationNumber = 0
@range (0.0,1.0)
attr minElevation = 0.2
@range (0.0,1.0)
attr maxElevation = 0.6

 

@Startrule
lot -->
         case elevationNumber <= minElevation: color(0,0,0)
         case elevationNumber >= maxElevation: color(0,0,0)
         else: color(1,1,1)

 

My idear is to label the each shape and then make the rule check the color of the adjacent tiles. 

 

Hope that somebody has experiences with using labels and can point me in the right direction. 

Outcomes