5

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

Image of ArcGIS legend

3
  • 2
    I bet this is a categorical raster with just seven categories, right? (Note that the legend is ordered alphabetically, not numerically.) :-)
    – whuber
    Commented Oct 12, 2011 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
    Commented Oct 13, 2011 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
    Commented Feb 24, 2013 at 20:13

1 Answer 1

2

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.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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