How do I reorder the Value field in a raster? There is no up or down button in it.

Image of ArcGIS legend

  • 2
    I bet this is a categorical raster with just seven categories, right? (Note that the legend is ordered alphabetically, not numerically.) :-) – whuber Oct 12 '11 at 21:19
  • Yes, correct. So with the numbers it will go from 1, 2, 3, 4 .... so this is how ArcMap read this way. Is there a script that will allow me to do fix the problem ? – PROBERT Oct 13 '11 at 15:00
  • This legend already is sorted, given that the slope codes are of alphanumeric type. You could use numeric codes for your categories or you could manually change the order in the legend. – whuber Feb 24 '13 at 20:13

One easy option would be to add a new field to the Attribute Table of the raster with a Short/Long Integer type, rank each category based on its correct order, then edit the labels for this new field to reflect the appropriate ranges, like below:

Order with integers, manually define ranges

A second, slightly more complicated option would be to place each range in a new heading (right-click the value, select Move to Heading, then New Heading...) and name these new headings according to the correct order for the ranges, like this:

Order with headings

In order to properly symbolize the raster in a legend, however, the option to show the heading in Legend Properties would need to be deactivated.

| 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.