The error output without this PR on the test file:
SEVERE: For input string: "-inf"
java.lang.NumberFormatException: For input string: "-inf"
at java.base/jdk.internal.math.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:2054)
at java.base/jdk.internal.math.FloatingDecimal.parseDouble(FloatingDecimal.java:110)
at java.base/java.lang.Double.parseDouble(Double.java:651)
at it.geosolutions.imageioimpl.plugins.tiff.TIFFImageReader.initializeFromMetadata(TIFFImageReader.java:1298)
at it.geosolutions.imageioimpl.plugins.tiff.TIFFImageReader.seekToImage(TIFFImageReader.java:835)
at it.geosolutions.imageioimpl.plugins.tiff.TIFFImageReader.getImageMetadata(TIFFImageReader.java:1450)
This PR adds support of the python styled
-inf / inf
nodata values support into the imagio-ext. Right, only the java styled NoData is supported.The test file is generated via the following gdal command:
The error output without this PR on the test file:
I noticed this one when tried to generate a file via for a similar geotools PR https://github.com/geotools/geotools/pull/3992