raster colormap and legend

5839
2
11-14-2012 01:54 PM
KayeBrubaker
New Contributor
These seems really elementary, but I can't find an answer anywhere.
I have a raster dataset that came with a colormap (USGS Land Cover).
When I display this raster in ArcMap 10, 255 "values" show up in the legend, even though only 14 pixel values are assigned colors. The rest show up as black, white, and grayscale.  How do I get rid of these nonexistent colors?
I just want the 14 colors that appear in the map to show up in legend in Layout.
I do not recall this being a problem in v. 9.3.
0 Kudos
2 Replies
FionaGregory
New Contributor II
In Symbology, change rendering from  Colormap to Unique Values. You should see the same colours but only 14. If there are extra entries for nonexistent values, delete them. Then Export Colormap. Go back to the Colormap tab. Import the same Colormap that you just exported. You should now have the same colormap without the extra values.
0 Kudos
JeffreySwain
Esri Regular Contributor
Do you have a colormap in the raster attribute table or with an auxiliary file (.clr)?  I would recommend exporting the colormap if it is internal and then deleting the rows marked, "red", "green", "blue" and "opacity."  You can then also remove the entries for the other values if you prefer in the exported .clr file.
0 Kudos