Skip to content

Commit 5b3453d

Browse files
Add CLASSIFY_SCALED directive (#1043)
Co-authored-by: sethg <sethg@geographika.co.uk>
1 parent 7612efc commit 5b3453d

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

en/input/raster.txt

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,24 @@ are supported in MapServer 4.0 and newer.
420420
::
421421

422422
PROCESSING "BANDS=4,2,1"
423-
423+
424+
.. index::
425+
triple: LAYER; PROCESSING; CLASSIFY_SCALED
426+
427+
**CLASSIFY_SCALED=YES/NO**
428+
This directive (added in 7.6) allows classification to use pre-scaled raster data
429+
for 16 bit rasters. In the example below data in the range 0-28
430+
is stretched to the 0-255 range and then classified.
431+
432+
Example:
433+
434+
::
435+
436+
PROCESSING "SCALE=0,28"
437+
PROCESSING "SCALE_BUCKETS=256"
438+
PROCESSING "CLASSIFY_SCALED=TRUE"
439+
440+
424441
.. index::
425442
triple: LAYER; PROCESSING; COLOR_MATCH_THRESHOLD
426443

0 commit comments

Comments
 (0)