Skip to content

Commit c64fee6

Browse files
committed
Document raster PROCESSING GAMMA option
Refs MapServer/MapServer#7069
1 parent 8137e8a commit c64fee6

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

en/input/raster.txt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,22 @@ are supported in MapServer 4.0 and newer.
468468

469469
PROCESSING "EXTENT_PRIORITY=WORLD"
470470

471+
.. index::
472+
triple: LAYER; PROCESSING; GAMMA
473+
474+
**GAMMA=<numeric_value>**
475+
This directive (MapServer 8.4+) instructs the GDAL reader to apply a
476+
`gamma correction <https://en.wikipedia.org/wiki/Gamma_correction>`__ step.
477+
The default value is 1.0 (no gamma correction).
478+
It is performed after classification, if any.
479+
It does not apply to raw rendering.
480+
481+
Example:
482+
483+
::
484+
485+
PROCESSING "GAMMA=0.75"
486+
471487
.. index::
472488
triple: LAYER; PROCESSING; LOAD_FULL_RES_IMAGE
473489

en/mapfile/layer.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1383,6 +1383,9 @@ PROCESSING [string]
13831383
that appear between adjacent polygons. A value of 0.5 is usually good
13841384
enough.
13851385

1386+
Note that starting with MapServer 8.4, a GAMMA processing option is
1387+
also available for rasters, but its default value is 1.0.
1388+
13861389
.. code-block:: mapfile
13871390

13881391
PROCESSING "GAMMA=0.5"

0 commit comments

Comments
 (0)