Skip to content

Commit

Permalink
GeoTiff: add 64bit support
Browse files Browse the repository at this point in the history
  • Loading branch information
meee1 committed Jun 25, 2021
1 parent 6dca52c commit fd7aba2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ExtLibs/Utilities/GeoTiff.cs
Original file line number Diff line number Diff line change
Expand Up @@ -608,6 +608,12 @@ private static double ProcessScanLine(geotiffdata geotiffdata, int y, byte[] sca
return short.MinValue;
return BitConverter.ToSingle(scanline, y * 4);
}
else if (geotiffdata.bits == 64 && geotiffdata.type == 3)
{
if (y * 8 > scanline.Length)
return short.MinValue;
return BitConverter.ToDouble(scanline, y * 8);
}

throw new Exception("ProcessScanLine: Invalid geotiff coord");
}
Expand Down

0 comments on commit fd7aba2

Please sign in to comment.