I have a classification image with only 12 classes. I'm preparing layout using this image. when I add legend into layout page, a lot of empty classes loaded together with these 12 classes. Totally 255 classes added to layout page. Then I tried to delete them in Symbology tab of data Properties window. How to remove these empty classes from legend.

Is there any way to do this?

  • What kind of data do you have? Are the classes numeric? In that case you could change the classes' range in Symbology (click Classify). If not, maybe you can post some screenshots to visualize? – Martin Dec 18 '12 at 14:02
  • These classes are not numeric, named just like forest, water etc..., When I tried to change these range, the result was still the same with befor it was. – Bandrush Barda Dec 18 '12 at 14:31
  • 1
    How can I separate legends one by one? After separating them, I wanna delete empty arrays. – Bandrush Barda Dec 18 '12 at 15:25
  • 1
    If you Convert a map element to graphics you can ungroup the legend graphics so the individual elements can be edited individually. Now the legend can be edited individually. But then it is not a dynamic legend. If you change the color of the layer the color of the legend will not change. – Jens Dec 20 '12 at 7:28
  • 1
    Jens - too much work to do that ! For a large raster dataset you wouldn't want that if you need to classified or clipped to a smaller area. – PROBERT Jan 7 '13 at 22:06

Right click on Legend rectangle and select properties, legend properties will open. Select items and in the item screen there a block named map extend options. Check the box of (only show classes that are visible in the current map extent)

| improve this answer | |

Have you build the Raster Attribute Table when you classified the classification image ? I had to do that when I clipped from an original GAP or NLCD imagery and need to clip to a vector/polygon. For example, here is what happened, when you clip to a vector, it brings the whole bunch of legneds carried over from the original imagery to the clipped imagery and I had to build the Raster Attribute Table toolbox to clean up the table in the clipped imagery. This way you will not have to convert them to graphics and lined up the symbology and that is pain !

It works for me and really saved a lot of my time and when I change it to the layout page and it will display what you need right there !

| improve this answer | |

Right click on the legend, grouping -> disaggregate, disaggregate again, then you can delete each individual component. When you are done, select all components and re-group them. Hope this helps.

| improve this answer | |
  • Is that new for ArcGIS 10 and later version ? - Daniel – PROBERT Jan 7 '13 at 23:59
  • It actually might be. I don't have access to prior versions so I couldn't tell you for sure. It's the method I've been using, though. – user14035 Jan 8 '13 at 1:11
  • Ok, sounds good. I don't remember it when I had the 9.3.1 but now I have the 10 version. – PROBERT Jan 8 '13 at 15:22

Yes build raster attribute table but in cataloge and it will update the new legend

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.