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

add raster mask methods #285

Merged
merged 6 commits into from Aug 27, 2022
Merged

add raster mask methods #285

merged 6 commits into from Aug 27, 2022

Conversation

jdroenner
Copy link
Member

  • [ x ] I agree to follow the project's code of conduct.
  • [ x ] I added an entry to CHANGES.md if knowledge of this change could be valuable to users.

@ChristianBeilschmidt
Copy link
Contributor

ChristianBeilschmidt commented Aug 16, 2022

Maybe we can create a separate Clippy PR based on parts of #284

@jdroenner
Copy link
Member Author

yes we need to solve that issue anyway

@ChristianBeilschmidt
Copy link
Contributor

#286

pub struct GdalMaskFlags(i32);

impl GdalMaskFlags {
const GMF_ALL_VALID: i32 = 0x01;
Copy link
Member

Choose a reason for hiding this comment

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

I'm a bit surprised we don't have these in gdal-sys.

Copy link
Member Author

Choose a reason for hiding this comment

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

i think it is a define not a const variable in the cpp code. I guess bindgen does not pick that up.

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, I'm not sure what's up, I think it should generate them.

Copy link
Member Author

Choose a reason for hiding this comment

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

is bindgen able to handle defines? i can't find any examples.

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

so what is wrong with our bindgen config? And i guess we would need to regenerate all bindings -_-

src/raster/rasterband.rs Outdated Show resolved Hide resolved
jdroenner and others added 2 commits August 16, 2022 15:49
Co-authored-by: Laurențiu Nicola <lnicola@users.noreply.github.com>
@jdroenner jdroenner mentioned this pull request Aug 23, 2022
6 tasks
@lnicola
Copy link
Member

lnicola commented Aug 24, 2022

@bors r+

@lnicola
Copy link
Member

lnicola commented Aug 27, 2022

bors r+

@bors
Copy link
Contributor

bors bot commented Aug 27, 2022

Build succeeded:

@bors bors bot merged commit 2e063a7 into master Aug 27, 2022
@ChristianBeilschmidt ChristianBeilschmidt deleted the mask_band branch September 2, 2022 15:29
@metasim metasim mentioned this pull request Sep 2, 2022
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.

None yet

3 participants