ASCII Grids round minimum and maximum if first cell value is integer
|Reported by:||Owned by:||Mateusz Łoskot|
Hi there, With ASCII grids, if the first cell value is an integer or a nodata value, then the minimum and maximum will be rounded. I put together a very simple Windows C++ example to demonstrate this bug, which may be downloaded here: Full project: http://dl.happysquirrel.com/temporary/ASCMinMaxExample.zip Binaries only: http://dl.happysquirrel.com/temporary/ASCMinMaxBug-BinariesOnly.zip In the zip file are two ascii grids of interest - "good.asc" and "bad.asc". They are identical except that the first cell value in "good.asc" has been replaced with 4.6 to illustrate that the first cell value is the determining factor. Example output: C:\dev\MinMaxExample\Debug>MinMaxExample.exe bad.asc Min: 4.000000 Max: 4.000000 C:\dev\MinMaxExample\Debug>MinMaxExample.exe good.asc Min: 4.600000 Max: 4.899000 Thank you! PS... I believe this is with GDAL 1.3.1 if memory serves.
Change History (4)
Note: See TracTickets for help on using tickets.