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 Dataset::build_overviews #164

Merged
merged 5 commits into from
Feb 23, 2021

Conversation

lnicola
Copy link
Member

@lnicola lnicola commented Feb 17, 2021

  • 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.

@lnicola lnicola force-pushed the dataset-build-overviews branch from cd24087 to 5623d4d Compare February 17, 2021 16:44
@lnicola lnicola force-pushed the dataset-build-overviews branch from 5623d4d to 3a92302 Compare February 17, 2021 16:47
src/dataset.rs Outdated
///
/// [`GDALBuildOverviews`]: https://gdal.org/doxygen/gdal_8h.html#a767f4456a6249594ee18ea53f68b7e80
pub fn build_overviews(
&self,
Copy link
Member

Choose a reason for hiding this comment

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

In line with #161, I wonder if @rmanoka or @jdroenner have thoughts about whether this should be &mut.

Copy link
Member

Choose a reason for hiding this comment

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

i guess &mut is the better choice.

Copy link
Member

@frewsxcv frewsxcv left a comment

Choose a reason for hiding this comment

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

Besides my comment, lgtm!

src/dataset.rs Outdated
///
/// [`GDALBuildOverviews`]: https://gdal.org/doxygen/gdal_8h.html#a767f4456a6249594ee18ea53f68b7e80
pub fn build_overviews(
&self,
Copy link
Member

Choose a reason for hiding this comment

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

Should this take &mut self if it's modifying self.c_dataset?

Copy link
Member

Choose a reason for hiding this comment

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

Lol @michaelkirk just commented about the same thing :)

@lnicola
Copy link
Member Author

lnicola commented Feb 22, 2021

Updated.

Unrelated, tests fail intermittently on my computer:

process didn't exit successfully: /home/me/Projects/georust/gdal/target/debug/deps/gdal-4103840a8afd223b (signal: 11, SIGSEGV: invalid memory reference)

(but only when gdb is not attached to the process 😕)

@jdroenner jdroenner merged commit 8af8dfb into georust:master Feb 23, 2021
@lnicola lnicola deleted the dataset-build-overviews branch February 23, 2021 07:26
@lnicola lnicola mentioned this pull request Feb 23, 2021
2 tasks
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.

4 participants