Details
Description
GeoTools does not support GeoTiffs that have only one overview. Details below:
On line 308 of GeoTiffReader.java from 2.4.4 tag the overViewResolutions array only gets initialized if numOverviews > 1.
Later on, on line 275 of AbstractGridCoverage2DReader.java (which is base class of GeoTiffReader), overViewResolutions gets dereferenced if numOverviews > 0. In the case where the GeoTiff has exactly one overview, a null exception is thrown.
The fix is to change GeoTiffReader.java:308 to check if numOverviews >= 1.
Attachments
Issue Links
| This issue is depended upon by: | ||||
| GEOS-2044 | Can't add GeoTIFF coverage if it has exactly one overview |
|
|
|