-
Notifications
You must be signed in to change notification settings - Fork 24
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
Support for writing GeoTIFF files #16
Comments
Hi @gschulze, yes please, go for it! The migration to the |
Hi, @weiji14! I managed to complete the migration to the Next, I would do the coordinate transformation stuff, as, in my opinion, this is what should be provided by this crate on top of the functionality already in the Writing GeoTIFFs should be straightforward, then. What is missing is the functionality to retrieve all tags from a file so that files can be read, modified, and written to disk again. I filed a corresponding issue over at the |
Nice, thanks for doing all that work! I was planning to do the migration more gradually in a series of PRs as part of #7, but reached a point where it probably made sense to do a complete rewrite. I'll try and give that PR a review this week.
I've got some code to get the affine transform from a GeoTIFF that was implemented in weiji14/cog3pio#8. Would be happy to upstream it to here afterwards. |
Hi, that sounds good! I already wrote some boilerplate code to handle the various combinations of There seem to be three cases for doing coordinate transformations:
I think cases 1 and 2 are pretty straightforward; there are examples of how to do it properly, e.g., https://github.com/OSGeo/libgeotiff. Case 3 is more complicated, and I did not find any standard way to do it. I'm happy to continue with the implementation or leave it up to you if you want to. In that case, feel free to use anything you might find helpful from my feature branch. By the way, things start to go a bit off-topic here. What do you think of opening a separate (tracking) issue for the things that need to be implemented so that we can better keep track of things? |
Yep, I think I have a good handle on case 1 & 2, but 3 is an entirely different beast! We can leave a bunch of
Yes please! I'm usually hesitant to open (too many) issues when it's just one person doing all the work, preferring to just document things in PRs, but for >1 people, then it makes sense to have a proper checklist somewhere. |
I think such a complex thing as 3. would better be done by geodesy? They have an issue (busstoptaktik/geodesy#86), but I think that has a deformation for every pixel in our own tiff? Anyways, the folks over at QGIS use polynomial/spline transformations for their georeferencing. |
It would be nice also to be able to write GeoTIFFs. Given that the tiff crate is used in the background, it should be straightforward to implement this. I can offer to implement this.
The text was updated successfully, but these errors were encountered: