Skip to content

Commit e62e1a3

Browse files
authored
Merge pull request #916 from rouault/raster_gamma
Document raster PROCESSING GAMMA option
2 parents 022c539 + c64fee6 commit e62e1a3

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

en/input/raster.txt

+16
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

+3
Original file line numberDiff line numberDiff line change
@@ -1386,6 +1386,9 @@ PROCESSING [string]
13861386
that appear between adjacent polygons. A value of 0.5 is usually good
13871387
enough.
13881388

1389+
Note that starting with MapServer 8.4, a GAMMA processing option is
1390+
also available for rasters, but its default value is 1.0.
1391+
13891392
.. code-block:: mapfile
13901393

13911394
PROCESSING "GAMMA=0.5"

0 commit comments

Comments
 (0)