Name

ST_HillShade — Returns the hypothetical illumination of an elevation raster band using provided azimuth, altitude, brightness and elevation scale inputs. Useful for visualizing terrain.

Synopsis

raster ST_HillShade(raster rast, integer band, text pixeltype, double precision azimuth, double precision altitude, double precision max_bright=255, double precision elevation_scale=1);

Description

Returns the hypothetical illumination of an elevation raster band using the azimuth, altitude, brightness, and elevation scale inputs. Utilizes map algebra and applies the hill shade equation to neighboring pixels.

The hill shade equation is:

max_bright * ( (cos(zenith)*cos(slope)) + (sin(zenith)*sin(slope)*cos(azimuth - aspect)) )

.

Availability: 2.0.0

Examples - coming soon

coming soon

See Also

ST_MapAlgebraFctNgb

ST_Aspect

ST_Slope