Tuesday, August 3, 2010

Setup a custom color palette map legend for Global Mapper

Sometimes it may be necessary to display a custom map legend in Global Mapper to help users understand the grid data displayed on the map, especially if the colors do not correspond to elevation data e.g. slope, aspect, weight, etc. The colors and the labels have to be manually defined either in a color palette file or interactively using the Global Mapper interface. I prefer to use a text editor to create the color palette file as described below. An example of how the color palette looks like in Notepad is shown below.

The first three numbers correspond to the RGB color values. The last column is the label enclosed in double quotes.
To use this custom color palette in Global Mapper, do the following:

  1. Start up Global Mapper. Load a non-elevation grid data, e.g. slope.asc.
  2. Select Tools | Map Layout.

    The Setup Map Layout dialog box appears.
  3. In the Map Legend group drop down list, choose Display Legend on Color Palette.

    The Setup Palette dialog box appears.

    Note: you can interactively define the colors and matching labels using the buttons or load in a previously created color palette file.
  4. Click Load Palette File. Browse and select an existing color palette file, e.g. SlopeLegend.pal. Click Open.

    The select color palette is loaded and displayed in the Palette list box.
  5. Click OK.
  6. In the Map Legend group's Header field, type in a meaningful Header e.g. Slope in Degrees. Click OK.

    The custom map legend is displayed in the map window.

No comments:

Related Posts with Thumbnails