How to fix a GeoTIFF that has an invalid NO DATA value: Difference between revisions
No edit summary |
No edit summary |
||
Line 27: | Line 27: | ||
[[File:nodata_tool_exe.PNG]]] | [[File:nodata_tool_exe.PNG]]] | ||
{{article end | |||
|seealso=* [[GeoTIFF]] | |||
*[[GeoTIFF Overlay]] | |||
}} |
Revision as of 12:05, 29 September 2023
When importing a GeoTIFF into a project that you are editing, it can occur that you will receive the following error:
This error means that the metadata of the GeoTIFF for the NODATA value was written in the ','-number notation, instead of the expected '.'-number notation.
It is possible to fix the metadata of a GeoTIFF. You can download the free exiftool program to automatically adjust the NODATA-metadata.
Download url exiftool: [1]
Once downloaded, extract the file
Next, you can create a command file that automatically adjust the NODATA to a valid value: -3.4028229999999999999e+038 (-Infinity)
exiftool.exe nodata_tiff_comma.tiff "-GDALNoData=-3.4028229999999999999e+038"
C:\Users\TYGRON\Downloads\downloadtool\exiftool-12.65\exiftool.exe %1 -GDALNoData=-3.4028229999999999999e+038
pause
C:\Users\TYGRON\Downloads\downloadtool\exiftool-12.65\exiftool.exe %1
pause