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

feat: add ability to create scaled tiles and tiles from SIDD #29

Merged
merged 1 commit into from
Dec 7, 2023

Conversation

edparris
Copy link
Contributor

@edparris edparris commented Dec 7, 2023

These changes add the ability to create scaled tiles using the GDALTileFactory. A new optional ouput_size parameter has been added to create_encoded_tile() that allows a user to select a desired output size.

These changes also fix a bug that prevented tiles created from a SIDD image from being output as a SIDD chip. The original code had not been updated to correctly update the SIDD XML metadata and instead was trying to use the SICD updater incorrectly. This PR includes a new SIDD metadata updater and it also updated the original SICD metadata updater to use the xsdata generated constructs instead of direct manipulation of ElementTree.

Unit tests were added to exercise the new scaling function and the broken SIDD chipping (which was missing tests).

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@edparris edparris marked this pull request as ready for review December 7, 2023 15:52
@edparris edparris merged commit 38d9be8 into dev Dec 7, 2023
1 check passed
@edparris edparris deleted the feature/reduced-resolution-tiles branch December 7, 2023 16:49
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