
In the image, it is visible that the raster data has unique values computed still the script is not accepting the layer
import arcpymxd = arcpy.mapping.MapDocument("current")lyr = arcpy.mapping.ListLayers(mxd, "IDSI_2002.img - Layer_1")[0]if lyr.symbologyType == "UNIQUE_VALUES": #lyr.symbology.valueField = "SUB_REGION" #lyr.symbology.addAllValues() print "we are not able to reach here" print (lyr.symbology.classLables)else: print "graduate color did not work"arcpy.RefreshActiveView()arcpy.RefreshTOC()del mxdoutput
>>> execfile("D:/PythonScripts/TestSymbols.py")graduate color did not work
أكثر...