Skip to content

Commit

Permalink
r.in.gdal/r.external: add basic support for GDALs GDT_Int8 (OSGeo#4256)
Browse files Browse the repository at this point in the history
* add support for Int8 from GDAL >= 3.7

* add int8 test (skiped if GDAL < 3.7)
  • Loading branch information
ninsbl authored and a0x8o committed Sep 5, 2024
1 parent d6da216 commit 038a493
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/raster/get_row.c
Original file line number Diff line number Diff line change
Expand Up @@ -1925,6 +1925,12 @@ static void gdal_values_int(int fd, const unsigned char *data,
cell[i] = *(GByte *)d;
>>>>>>> f130b43e6c (r.horizon manual - fix typo (#2794))
break;
/* GDT_Int8 was introduced in GDAL 3.7 */
#if GDAL_VERSION_NUM >= GDAL_COMPUTE_VERSION(3, 7, 0)
case GDT_Int8:
c[i] = *(int8_t *)d;
break;
#endif
case GDT_Int16:
c[i] = *(GInt16 *)d;
break;
Expand Down

0 comments on commit 038a493

Please sign in to comment.