Relief Shade statement - MapBasic - 2023

MapInfo MapBasic Reference

Product type
Software
Portfolio
Locate
Product family
MapInfo
Product
MapInfo > MapBasic
Version
2023
ft:locale
en-US
Product name
MapBasic
ft:title
MapInfo MapBasic Reference
First publish date
1985
ft:lastEdition
2023-09-12
ft:lastPublication
2023-09-12T16:32:32.686000

Purpose

Adds relief shade information to an open grid table. You can issue this statement from the MapBasic window in MapInfo Pro.

Syntax

Relief Shade
	Grid tablename
	Horizontal xy_plane_angle
	Vertical incident_angle 
	Scale z_scale_factor

tablename is the alias name of the grid to which relief shade information is being calculated.

xy_plane_angle is the direction angle, in degrees, of the light source in the horizontal or xy plane. An xy_plane_angle of zero represents a light source shining from due East. A positive angle places the light source counterclockwise, so to place the light source in the NorthWest, set xy_plane_angle to 135.

incident_angle is the angle of the light source above the horizon or xy plane. An incident_angle of zero represents a light source right at the horizon. An incident_angle of 90 places the light source directly overhead.

z_scale_factor is the scale factor applied to the z-component of each grid cell. Increasing the z_scale_factor enhances the shading effect by exaggerating the vertical component. This can be used to bring out more detail in relatively flat grids.

Example

Relief Shade 
	Grid Lumens 
	Horizontal 135 
	Vertical 45 
	Scale 30