-
-
Notifications
You must be signed in to change notification settings - Fork 320
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
build: Remove compatibility to GDAL 1 and <2.2 #2995
Conversation
e75976f
to
99b240a
Compare
I think we had some confusion about the test failures at the in-person meeting, but these are real, although I don't quite see a useful message:
|
Was a mistake when I've manually deleted some parts of code in |
Probably an ancient GDAL in our CentOS 7 build is causing the build failure. That was exactly the reason to have CentOS 7 to catch cases for these outdated dependencies. However, perhaps now it the time to finally remove our CentOS 7 build. (It anyway uses conda to get things working, so it is not pure CentOS anyway.) |
@lbartoletti would you mind to rebase this PR? |
7d45b62
to
78fddaa
Compare
done. |
@metzm , others: any objections to merge this PR? |
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.
@metzm , others: any objections to merge this PR?
I'd welcome this simplification of the code! I noticed some places where calls to GDAL are defined as macros / typedef depending on version. Those may probably be removed all together and be replaced by directly using the GDAL API. I made a comments in-line for the cases which could be relevant for this change.
Very nice, no objections from my side to drop support for those old GDAL versions. The suggestions of @nilason should be applied before merging. All macros and typedefs related to GDAL versions before 2.2 can go. |
78fddaa
to
7ad2aff
Compare
7ad2aff
to
8fb3ebf
Compare
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.
Thanks @lbartoletti ! Looks good to me.
(This removes some 500 lines of obsolete code!)
Thanks! That's really great! |
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.
Issues raised by @nilason and further elaborated on by @metzm were addressed. Compatibility wrappers are removed from the headers which ensures ensures there are not used elsewhere.
There should be no impact on user code even with the change in gis.h
if it is already portable code.
I assume these are all occurrences of GDAL_VERSION_NUM
in the source code, but even if they are not, they are easy to find and would not harm this great PR.
This basically remove "dead code" since most modern distribution/packaging have GDAL 3. Version of GDAL no longer supported: 1 and <2.3. Remove compatibility macros and use GDAL functions directly. Fixes OSGeo#2645.
This basically remove "dead code" since most modern distribution/packaging have GDAL 3. Version of GDAL no longer supported: 1 and <2.3. Remove compatibility macros and use GDAL functions directly. Fixes OSGeo#2645.
This PR aims to cleanup grass code to remove "dead code" since most modern distribution/packaging have GDAL 3.
Fixes #2645