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 Rasterband::fill #528

Merged
merged 1 commit into from
Apr 19, 2024
Merged

Add Rasterband::fill #528

merged 1 commit into from
Apr 19, 2024

Conversation

netthier
Copy link
Contributor

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

This PR adds safe bindings for https://docs.rs/gdal-sys/latest/gdal_sys/fn.GDALFillRaster.html (https://gdal.org/api/gdalrasterband_cpp.html#classGDALRasterBand_1a55bf20527df638dc48bf25e2ff26f353)
The C++ API has a default value for the dfImaginaryValue param which is missing from the C API, so I reintroduced via an Option+.unwrap_or. Let me know if this isn't acceptable.
I also haven't tested that parameter, as I'm unsure how to read it back.

@netthier
Copy link
Contributor Author

I should probably add docs about the default imaginary value too...

Signed-off-by: netthier <[email protected]>
@netthier
Copy link
Contributor Author

I ran cargo fmt against it, CI shouldn't fail anymore (I hope).

@lnicola lnicola merged commit 26f2544 into georust:master Apr 19, 2024
9 checks passed
@netthier netthier deleted the raster-fill branch April 22, 2024 21:23
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.

2 participants