Monday, 23 January 2017

raster - Read layer symbology class color with ArcPy


I am using ArcPy within ArcGIS 10.1 and attempting to read symbology from a *.lyr file created by a raster dataset within ArcMap. My goal is to be able read out the RGB (color) values assigned to the class breaks on the dataset. It’s seems easy enough to get the lyr file into an object with:


    lyrFile = arcpy.mapping.Layer("C:/.../ReadLyrFileSymbology/conus_foresttype6.img.lyr")

However, after that I am unable to find the method or property to get symbology color (RGB) on a layer. Any pointers would be greatly appreciated.




No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...