Hi Even,
Than you for confirming the observetion.
It seems that the gdalenhance output from 16 bit into 8 bit GeoTIFF copies the
statistics even they obviously should be recomputed, but I need to make some
more tests. This output made me think so:
Band 1 Block=12000x1 Type=Byte, ColorInterp=Gray
Min=1.000 Max=1145.000
Minimum=1.000, Maximum=1145.000, Mean=24.459, StdDev=21.984
NoData Value=0
Metadata:
STATISTICS_MAXIMUM=1145
STATISTICS_MEAN=24.459199743056
STATISTICS_MINIMUM=1
STATISTICS_STDDEV=21.984243009486
STATISTICS_VALID_PERCENT=100
-Jukka-
________________________________________
Lähettäjä: Even Rouault <[email protected]>
Lähetetty: Sunnuntai 26. lokakuuta 2025 23.34
Vastaanottaja: Rahkonen Jukka <[email protected]>;
'[email protected]' <[email protected]>
Aihe: Re: [gdal-dev] Gdalenhance, VRT and LUT
Hi Jukka,Le 26/10/2025 à 22:23, Rahkonen Jukka via gdal-dev a écrit :Hi,
I tried to use gdalenhance by having VRT as the outputformat and supposed that
the resulting VRT would contain LUT elements, but it did not. Is this a known
but undocumented limitation in
https://gdal.org/en/stable/programs/gdalenhance.html?yes. It does use VRT
internally, but using a method (VRTSourcedRasterBand::AddFuncSource()) that
doesn't support serialization as XML VRT.Error message and doc added in
https://github.com/OSGeo/gdal/commit/d7748d51e550b75b19869a1e222bdf85b40c75bfEven--
http://www.spatialys.com
My software is free, but my time generally not.
_______________________________________________
gdal-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/gdal-dev