Select to view content in your preferred language

How to access raster classification alias from layer

23
0
7 hours ago
Labels (1)
DonMorrison1
Occasional Contributor III

I'm creating a python toolbox geoprocessing tool that will take a raster map layer as input (USA NLCD Land Cover), do some analysis on it, and generate a report - basically tabulating the acreage of the different land cover types (eg. open water, barren land, mixed forest...) for a given area. In the report I'd like to show the classification labels, but I can only see how to access the actual numeric pixel values (eg. 1,2,3, etc).  I assumed I could get this throught the layer's symbology, but I'm not seeing it.  How can I use arcpy to find the mapping from numeric classification to the text label, starting from a Layer object? 

0 Kudos
0 Replies