Skip to content
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

r.in.pdal: Fix use of PDAL 2.4 deprecated api #2656

Merged
merged 4 commits into from
Nov 21, 2022

Conversation

nilason
Copy link
Contributor

@nilason nilason commented Nov 16, 2022

@nilason nilason marked this pull request as draft November 16, 2022 17:02
@nilason
Copy link
Contributor Author

nilason commented Nov 16, 2022

Seems to work fine, only one call:
h.pointCountByReturn()
needs to casted somehow...?

@nilason nilason changed the title Fix pdal warning r.in.pdal: Fix use of PDAL 2.4 deprecated api Nov 16, 2022
@nilason nilason marked this pull request as ready for review November 17, 2022 10:30
@nilason
Copy link
Contributor Author

nilason commented Nov 17, 2022

Now this replicates PDAL pre-2.4 behaviour for r.in.pdal. I have tested with 2.3.0 and 2.4.2; the CI builds fine with 2.0.1.

@nilason nilason requested a review from marisn November 17, 2022 10:37
@neteler
Copy link
Member

neteler commented Nov 17, 2022

If possible, could this be backported? In various distros G8.2 will stay for a while...

@nilason
Copy link
Contributor Author

nilason commented Nov 17, 2022

If possible, could this be backported? In various distros G8.2 will stay for a while...

Shouldn't be any problem!

@nilason nilason added backport_needed bug Something isn't working C++ Related code is in C++ labels Nov 17, 2022
@nilason nilason added this to the 8.2.1 milestone Nov 17, 2022
Copy link
Contributor

@marisn marisn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't run, but code looks OK.

@nilason nilason merged commit 14d2e8a into OSGeo:main Nov 21, 2022
nilason added a commit that referenced this pull request Nov 21, 2022
@nilason nilason deleted the fix_pdal_warning branch November 21, 2022 20:31
@nilason
Copy link
Contributor Author

nilason commented Nov 21, 2022

Merged and backported.

Thanks @marisn !

@nilason
Copy link
Contributor Author

nilason commented Nov 21, 2022

Merged and backported.

That is backported to 8.2

ninsbl pushed a commit to ninsbl/grass that referenced this pull request Feb 17, 2023
marisn pushed a commit to marisn/grass that referenced this pull request Jun 2, 2023
neteler pushed a commit to nilason/grass that referenced this pull request Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working C++ Related code is in C++
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] r.in.pdal uses deprecated declarations from PDAL
3 participants