Changes between Initial Version and Version 1 of Ticket #5767
- Timestamp:
- Dec 9, 2014, 5:52:28 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #5767
- Property Owner changed from to
-
Ticket #5767 – Description
initial v1 9 9 However 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. 10 10 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 11 This patch fixes the problem by explicitly converting the array's data type, earlier in the process: 12 https://github.com/koordinates/gdal/commit/efea5dafaf536213faadbbc3f671591aa6aa8c30