Gridinfoform sample application – Pitney Bowes MapXtreme User Manual

Page 327

Advertising
background image

Chapter 17: Working with Rasters and Grids

Grid Style

MapXtreme v7.1

334

Developer Guide

Relief Shading

Relief shading allows you to shade your grid surface map according to the orientation of a virtual
light source. This enables you to take surface slope and direction into account relative to the
direction of the light. The Grid Style dialog provides a setting to enable or disable relief shading.

To adjust the relief shading settings, you must first highlight the grid layer in Layer Control and
choose the Hillshade tab. Relief shading is not applied as a style override, as is the inflection
settings.

Light Source

The light source settings for horizontal, vertical angle and vertical scale are set in the Layer Control
dialog, under the Hillshade tab. This tab displays only when a grid layer is selected and hillshading is
enabled.

Horizontal Angle
Rotates the light source in the horizontal plane. Zero degrees corresponds to the light source shining
from due East. Positive angles rotate the light source counterclockwise, so, for example, 90 degrees
places the light source due North.

Vertical Angle
Rotates the light source in the vertical plane. Zero degrees places the light source at the horizon,
and 90 degrees places it directly overhead. Specify angles between 180 and 360 degrees to have
the light source originate from under the surface.

Vertical Scale Factor
Specify a scale factor between 0 and 100. Increasing this scale factor exaggerates the surface
vertically, enhancing the shading effect. This can be useful for enhancing detail in relatively flat
surfaces.

Recompute Hillshade
Click this button to recompute the hillshade after you make adjustments to the light source settings.

Inflection Values

These values show the minimum and maximum values in the grid table. These values are not
editable.

Min:
Shows the minimum data point value in the source table.

Max:
Shows the maximum data point value in the source table.

GridInfoForm Sample Application

MapXtreme provides C# sample applications that incorporate the GridInflectionCalculator. Find
these samples under the \Desktop\Features\GridinfoForm under the \Samples\VisualStudio2005 or
\Samples\VisualStudio2008 folders.

Advertising