MapServer / MapServer-import

3 stars 2 forks source link

PROCESSING LUT= always shows highest value as white (mapdrawgdal.c) #2167

Closed tbonfort closed 11 years ago

tbonfort commented 12 years ago

Reporter: hulst Date: 2007/07/20 - 22:05 Hi,

I have been trying the PROCESSING LUT_n="" directives. They work, but I found that the highest value in the raster is always colored white. That is, in my opinion, not desirable because I would be able to set my own out value there. Please refer to the attachments hs_saturated.png (white spot) and hs.png (white spot removed). The latter image was created using shp2img on the raster.map and hs.tif files after I modified mapdrawgdal.c, line 997 of revision 6358 so that it only appends a value pair 255:255 when the user did not specify a 255:x pair (see attachment). Note that I've modified my first idea stated on the mailinglist that a pair should not be appended when the user puts any value in the PROCESSING directive.

Best regards, Sander

tbonfort commented 12 years ago

Author: hulst Date: 2007/07/20 - 22:13 hs.2.png should be ignored

tbonfort commented 12 years ago

Author: warmerdam Date: 2007/07/26 - 03:12 Sander,

I have applied this simplified patch in trunk as 012f27cbc7d5e53e3d0da870cb6c1428a5e16362 (r6395). It looks like an excellent adjustment!

Best regards,

Schpidi commented 11 years ago

This is an automated comment

This issue has been closed due to lack of activity. This doesn't mean the issue is invalid, it simply got no attention within the last year. Please reopen if still valid.