Skip to content

Conversation

@remkos
Copy link
Contributor

@remkos remkos commented Jan 5, 2026

Description of proposed changes

This is to replace
GDALGetDataTypeSize(GDALGetRasterDataType(hBand)) / 8
by
GDALGetDataTypeSizeBytes(GDALGetRasterDataType(hBand))
since
GDALGetDataTypeSize (which was in bits) is marked as deprecated since GDAL v3.12.

This does not change any of the functionality.

Reminders

  • Make sure that your code follows our style. Use the other functions/files as a basis.
  • Add tests for new features or tests that would have caught the bug that you're fixing.
  • Describe changes to function behavior and arguments in a comment below the function declaration.
  • If adding new functionality, add a detailed description to the documentation and/or an example.

@remkos remkos merged commit 1412db0 into master Jan 5, 2026
9 of 13 checks passed
@remkos remkos deleted the gdal_deprecation_fix branch January 5, 2026 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants