Changes between Initial Version and Version 1 of Ticket #5767


Ignore:
Timestamp:
Dec 9, 2014, 5:52:28 PM (9 years ago)
Author:
cdestigter
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #5767

    • Property Owner changed from hobu to Robert Coup
  • Ticket #5767 – Description

    initial v1  
    99However it seems gdal_calc is doing the type conversion implicitly, after the output values are calculated. So the -1 gets wrapped into a byte, and the values all get set to 255 instead of -1.
    1010
    11 This patch fixes the problem by explicitly converting the array's data type, earlier in the process: https://github.com/koordinates/gdal/commit/878b60540a1b3c6ef06029c2c63811acc7ef1261
     11This patch fixes the problem by explicitly converting the array's data type, earlier in the process:
     12https://github.com/koordinates/gdal/commit/efea5dafaf536213faadbbc3f671591aa6aa8c30