Re: [mapserver-users] Stretching subset of a raster

2019-06-13 Thread Lime, Steve D (MNIT)
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?

--Steve

From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
Behalf Of Radov, Asen (GSFC-619.0)[UNIVERSITY OF MARYLAND]
Sent: Wednesday, June 12, 2019 3:40 PM
To: mapserver-users@lists.osgeo.org
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.

Hello,

Can someone help me with this issue?
https://gis.stackexchange.com/questions/316651/mapserver-processing-scale-a-b-does-not-stretch-data<https://gcc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.proofpoint.com%2Fv2%2Furl%3Fu%3Dhttps-3A__gis.stackexchange.com_questions_316651_mapserver-2Dprocessing-2Dscale-2Da-2Db-2Ddoes-2Dnot-2Dstretch-2Ddata%26d%3DDwMGaQ%26c%3DApwzowJNAKKw3xye91w7BE1XMRKi2LN9kiMk5Csz9Zk%26r%3De281LxOLUXWX77lCDwwDG7yS4rW9wU7C6637XRybRqc%26m%3DNS38yaLTmsm6irtRXIRVXd-7QakCAwBaL1ubY3PECjs%26s%3DP-SLcTl5e-OHR1L68wOjGqdURUiDhstrL6ORn5w3rbY%26e%3D=02%7C01%7Csteve.lime%40state.mn.us%7C8bed199fd45341a12a8d08d6ef776981%7Ceb14b04624c445198f26b89c2159828c%7C0%7C0%7C636959693533127749=KbsYs7Is173nVr2We5iTpgMoY%2B00bGG9KXu1kSXlxlk%3D=0>
Any help is greatly appreciated.


Thank you,
Asen Radov

NASA Goddard Space Flight Center / Code 619
Phone: 301-614-6517
E-mail: asen.s.ra...@nasa.gov<mailto:asen.s.ra...@nasa.gov>

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Stretching subset of a raster

2019-06-12 Thread Jeff McKenna

Hi Asen,

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.


(if I am understanding your situation, ha)

-jeff




--
Jeff McKenna
MapServer Consulting and Training Services
https://gatewaygeomatics.com/




On 2019-06-12 4:39 PM, Radov, Asen (GSFC-619.0)[UNIVERSITY OF MARYLAND] 
wrote:

Hello,

Can someone help me with this issue?

https://gis.stackexchange.com/questions/316651/mapserver-processing-scale-a-b-does-not-stretch-data 



Any help is greatly appreciated.

/Thank you, /

/Asen Radov/

//

/NASA Goddard Space Flight Center / Code 619/

/Phone: 301-614-6517/

/E-mail: asen.s.ra...@nasa.gov /




___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] Stretching subset of a raster

2019-06-12 Thread Radov, Asen (GSFC-619.0)[UNIVERSITY OF MARYLAND]
Hello,

Can someone help me with this issue?
https://gis.stackexchange.com/questions/316651/mapserver-processing-scale-a-b-does-not-stretch-data
Any help is greatly appreciated.


Thank you,
Asen Radov

NASA Goddard Space Flight Center / Code 619
Phone: 301-614-6517
E-mail: asen.s.ra...@nasa.gov

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users