-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add int8 (since gdal 3.7.0) #127
Conversation
d1b6f40
to
11e1971
Compare
Pull Request Test Coverage Report for Build 9779195638Details
💛 - Coveralls |
Unfortunately, I did not find a way to have a compile-time error iif Int8 is used with Gdal < 3.7.0. It will result in a runtime error. |
11e1971
to
4137d35
Compare
Pull Request Test Coverage Report for Build 9888791533Details
💛 - Coveralls |
doc_test.go
Outdated
@@ -289,6 +289,19 @@ func Example_rasterTutorial() { | |||
poDstDS.Bands()[0].Write(0, 0, abyRaster, 512, 512) | |||
poDstDS.Close() | |||
|
|||
poDstDSInt8, err := godal.Create(godal.GTiff, pszDstFilename, 1, godal.Int8, 512, 512) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please put this test inside a new function in godal_test.go. doc_test.go is meant for documenting basic usage
godal.h
Outdated
@@ -25,6 +25,10 @@ | |||
|
|||
#if GDAL_VERSION_NUM < 3000000 | |||
#error "this code is only compatible with gdal version >= 3.0" | |||
#elif GDAL_VERSION_NUM < GDAL_COMPUTE_VERSION(3, 7, 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer if this went into its own #if instead of this #elif, as the intent is different
4137d35
to
e255643
Compare
Co-authored-by: Thomas Bonfort <[email protected]>
No description provided.