Ticket #1722 (closed defect: fixed)
[PATCH] Fix GeoTIFF detection of already computed overview levels
| Reported by: | rouault | Owned by: | warmerdam |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.4.3 |
| Component: | GDAL_Raster | Version: | 1.4.2 |
| Severity: | normal | Keywords: | geotiff overviews |
| Cc: |
Description
Use case : 0) I have a GTiff 121x121 Int16. 1) gdaladdo -r average test.tiff 2 4 8 16 2) gdaladdo -r average test.tiff 2 4 8 16. Yeah, this is stupid... 3) gdaladdo -r average test.tiff 2 4 8 16. Segfault
Currently, the 1/16 overview is wrongly detected as 1/15 when doing 2). This lead to segfault when doing 3).
The following patch simulates the new X size of the requested overview and compares it with the X size of the existing overviews, instead of comparing the reduction ratios.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

