[mapserver-users] LUT file too long, what to do?

thomas bonfort thomas.bonfort at gmail.com
Wed Jan 26 02:18:49 PST 2022


Hi Jukka,
Unfortunately it's hardcoded:
https://github.com/MapServer/MapServer/blob/2d73b379284aa12a2013929dfb6cdc244ae60994/mapdrawgdal.c#L1064
but it shouldn't be very difficult for you to apply a local patch fixing
that.
regards,
thomas

On Wed, Jan 26, 2022 at 11:11 AM Rahkonen Jukka (MML) <
jukka.rahkonen at maanmittauslaitos.fi> wrote:

> Hi,
>
>
>
> I am trying to adjust satellite image colors with a GIMP curve file but
> trial fails because the file is too long
>
>
>
> [Wed Jan 26 12:03:52 2022].708000 msDrawRasterLayerLow(sentinel_lut):
> entering.
>
> [Wed Jan 26 12:03:52 2022].713000 drawGDAL(): Unable to access file. LUT
> definition from file c:\ms4w_data\sentinel_malli_a.crv longer than maximum
> buffer size (2500 bytes).
>
>
>
> Is this a hard coded limit or can user override it somehow? The .crv file
> has 26000 characters and it is using ridiculous precision in entries
> (0.98265581597222207) but it is not easy to shrink it into 2500 characters.
>
>
>
> -Jukka Rahkonen-
> _______________________________________________
> MapServer-users mailing list
> MapServer-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20220126/e17d9379/attachment.html>


More information about the MapServer-users mailing list