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 #24

Merged
merged 2 commits into from
Jun 30, 2016
Merged

Add RasterBand #24

merged 2 commits into from
Jun 30, 2016

Conversation

jdroenner
Copy link
Member

This adds a struct RasterBand and moves all related functions from Dataset to RasterBand.
I'm not sure if the read/write functions in Dataset should be removed or stay as shortcuts. As requesting a RasterBand from a Dataset should return an Option<RasterBand> i adapted the shortcuts to reflect this...

Additionally i added some more Rasterband specific functions and implemented Metadata #20 for RasterBand.

…asterband.rs.

Added more rasterband functions and tests.
@frewsxcv
Copy link
Member

This looks awesome! Will review it later today

}


pub fn get_rasterband<'a>(&'a self, band_index: isize) -> Option<RasterBand<'a>> {
Copy link
Member

Choose a reason for hiding this comment

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

It's Rust convention to not have get_ prefixes on getters, but it's up to you.

https://doc.rust-lang.org/style/style/naming/README.html#gettersetter-methods-rfc-344

Copy link
Member

Choose a reason for hiding this comment

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

If you do decide to change this, there are other get_ cases below that could also be changed.

Copy link
Member Author

Choose a reason for hiding this comment

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

Maybe that's the price for working with multiple languages at the same time ;) I will remove all get_prefixes.

@frewsxcv
Copy link
Member

Looks great! Feel free to merge.

On a separate note, you seem to be leading the rust-gdal effort at the moment, so I'm going to leave it up to you for the direction of this library :) If I had more time, I'd love to also work on it, but I'm a bit busy currently. I'll still be happy to do reviews though

@frewsxcv
Copy link
Member

I also just granted crates.io publish rights to the georust/core team, so you should be able to publish your changes whenever you want.

@jdroenner
Copy link
Member Author

Thanks :) I guess we will have to see how much time i can spend for rust-gdal. But i will try to do my best :)

@frewsxcv
Copy link
Member

frewsxcv commented Jun 27, 2016

Latest commit looks good. Want me to merge and deploy publish it or do you want to try it out yourself?

@jdroenner jdroenner merged commit e045a6d into georust:master Jun 30, 2016
@jdroenner jdroenner deleted the rasterband branch June 30, 2016 19:20
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