From 9475da71568a51cc6d1833b5cbeace7003dad23e Mon Sep 17 00:00:00 2001 From: sethg Date: Mon, 6 Oct 2025 08:51:13 +0200 Subject: [PATCH] Add CLASSIFY_SCALED directive --- en/input/raster.txt | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/en/input/raster.txt b/en/input/raster.txt index 118304e0c60..dc81d062c3a 100644 --- a/en/input/raster.txt +++ b/en/input/raster.txt @@ -420,7 +420,24 @@ are supported in MapServer 4.0 and newer. :: PROCESSING "BANDS=4,2,1" - + +.. index:: + triple: LAYER; PROCESSING; CLASSIFY_SCALED + +**CLASSIFY_SCALED=YES/NO** + This directive (added in 7.6) allows classification to use pre-scaled raster data + for 16 bit rasters. In the example below data in the range 0-28 + is stretched to the 0-255 range and then classified. + + Example: + + :: + + PROCESSING "SCALE=0,28" + PROCESSING "SCALE_BUCKETS=256" + PROCESSING "CLASSIFY_SCALED=TRUE" + + .. index:: triple: LAYER; PROCESSING; COLOR_MATCH_THRESHOLD