[gdal-dev] Image values greater than the maximum.
Frank Warmerdam
warmerdam at pobox.com
Wed Jun 11 04:35:04 EDT 2008
Michele,
This is quite surprising. I'd appreciate your filing a detailed ticket
on the issue.
Best regards,
FrankW
On Wed, Jun 11, 2008 at 3:57 AM, Michele Sanges
<michele.sanges at otomelara.it> wrote:
> I noticed a problem in my code; it's reproducible with the
> Arc/Info_ASCII_GRID gdal dataset taken from:
>
> http://download.osgeo.org/gdal/data/aaigrid/095b_dem_90m.asc
>
> If I call the function GDALComputeRasterMinMax() with the second
> parameter 'bApproxOK' set to FALSE, I get the values:
>
> * min=213
> * max=538
>
> Then, when I go to read the image with the ReadIO function, all of the
> values are within this range and this is ok.
>
> Instead if I call the function GDALComputeRasterMinMax() with the second
> parameter 'bApproxOK' set to TRUE, I get the same above min and max
> values but when I go to read the image, some of the values are greater
> than the maximum.
>
> Why the parameter 'bApproxOK' has influence on the values of data?
>
> Thanks.
> Michele
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent
More information about the gdal-dev
mailing list