[mapserver-users] LUT file too long, what to do?
Rahkonen Jukka (MML)
jukka.rahkonen at maanmittauslaitos.fi
Wed Jan 26 02:37:15 PST 2022
Hi Thomas,
It appeared that GIMP has invented a new format for saving the curves since the Mapverver LUT processing option was introduced in 2006 and the new format is not supported anyway. GIMP can still export the old compact format and for that the 2500 character limit may be realistic.
-Jukka-
Lähettäjä: thomas bonfort <thomas.bonfort at gmail.com>
Lähetetty: keskiviikko 26. tammikuuta 2022 12.19
Vastaanottaja: Rahkonen Jukka (MML) <jukka.rahkonen at maanmittauslaitos.fi>
Kopio: Mapserver-Users (mapserver-users at lists.osgeo.org) <mapserver-users at lists.osgeo.org>
Aihe: Re: [mapserver-users] LUT file too long, what to do?
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<mailto: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<mailto: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/a3311a8d/attachment.htm>
More information about the MapServer-users
mailing list