What happens if you remove the PROCESSING line from your first test,
save that image with a shp2img command, and then add PROCESSING
"SCALE=10,20" and re-run shp2img? The pixel values in the 10-20 range
should be stretched in the second image, which you can compare to your
first non-stretched image.
In reply to this post by Radov, Asen (GSFC-619.0)[UNIVERSITY OF MARYLAND]
Hi Asen: Hmmm… What version of MapServer and GDAL? The scaling should be happening in GDAL before the data hit MapServer so the [pixel] values MapServer gets are already between 0-255 in both
of your cases. What I don’t know is what GDAL does with values outside the scaling range – so with SCALE=10,20 what do 5 or 50 get mapped to.
Do you have a sample GeoTiff to play with?
From: mapserver-users [mailto:[hidden email]]
On Behalf Of Radov, Asen (GSFC-619.0)[UNIVERSITY OF MARYLAND] Sent: Wednesday, June 12, 2019 3:40 PM To:[hidden email] Subject: [mapserver-users] Stretching subset of a raster
This message may be from an external email source.
Do not select links or open attachments unless verified. Report all suspicious emails to Minnesota IT Services Security Operations Center.