Hi,
I have written a script that updates all the datasources in an mxd. There are 2 layers that have a graduated color ramp classified by 4 classes Quartile and saves it as a new document. I am under the impression that the code below should show the data changes but when i open the mxd they haven't changed from the old data but when i go into classification the numbers will update.
Any thoughts or am i not using reclassify properly?
Thanks,
Matt
I have written a script that updates all the datasources in an mxd. There are 2 layers that have a graduated color ramp classified by 4 classes Quartile and saves it as a new document. I am under the impression that the code below should show the data changes but when i open the mxd they haven't changed from the old data but when i go into classification the numbers will update.
Any thoughts or am i not using reclassify properly?
Code:
for lyr in arcpy.mapping.ListLayers(mxd):
if lyr.supports("symbologyType"):
if lyr.symbologyType == "GRADUATED_COLORS":
print lyr.name
lyr.symbology.reclassify()
else:
print layer.name + "Not a layer with GRADUATED_COLORS"
else:
print layer.name + "Doesn't support symbologyType"
Matt