Skip to content

Conversation

@scottstanie
Copy link
Member

GDAL 3.12 introduced a breaking API change:
GetGeoTransform() and SetGeoTransform() methods now use a GDALGeoTransform class instead of raw double* arrays.

This patch adds conditional compilation to support both the new GDAL 3.12+ API and older versions.

From https://gdal.org/en/stable/user/migration_guide.html

Virtual methods GDALDataset::GetGeoTransform() (resp. GDALDataset::SetGeoTransform() have been modified to accept GDALGeoTransform& gt (resp. const GDALGeoTransform& gt) parameters instead of a pointer to 6 doubles. The new class GDALGeoTransform is a thin wrapper around a std::array<double, 6>. This change affects out-of-tree raster drivers.

GDAL 3.12 introduced a breaking API change:
`GetGeoTransform()` and `SetGeoTransform()` methods now use a
`GDALGeoTransform` class instead of raw double* arrays.

This patch adds conditional compilation to support both the new GDAL 3.12+ API and older versions.

See https://gdal.org/en/stable/user/migration_guide.html
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.

1 participant