Changes between Initial Version and Version 1 of Ticket #6060
- Timestamp:
- Aug 5, 2015, 8:25:24 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #6060 – Description
initial v1 13 13 While GDAL is fairly robust at correctly interpreting if a raster is integer or float type, other software such as ArcGIS is not. For instance, a raster that is mostly zero is interpreted by ArcGIS as signed integer. But modify the first pixel of the ASC file from `0` to `0.` corrects the interpretation to floating point. (This is not an issue with GDAL, which evaluates 100% of the data, not 100 kB as documented). 14 14 15 [[Image(Comparison_of_asc.png)]] 16 15 17 A suggestion for writing float rasters is to check if the formatted string of the first pixel of the first line has a `.` character. If not, and the value is finite (not NaN, Inf, etc.), append a `.` to that first value.