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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support writing to Python files #2907

Merged
merged 9 commits into from
Dec 22, 2023
Merged

Support writing to Python files #2907

merged 9 commits into from
Dec 22, 2023

Conversation

sgillies
Copy link
Member

@sgillies sgillies commented Aug 31, 2023

This depends on PR #2898.

Resolves #2906.

Almost trivial after the work in #2898 馃槃 I'm going to force push to this PR's branch after #2898 is merged.

What do you think of 3dc1465 @groutr @snowman2 ?

@sgillies sgillies added this to the 1.4.0 milestone Aug 31, 2023
@sgillies sgillies self-assigned this Aug 31, 2023
@sgillies sgillies changed the title Issue2906 Support writing to Python files Aug 31, 2023
@sgillies sgillies requested a review from snowman2 August 31, 2023 15:02
@sgillies sgillies marked this pull request as ready for review August 31, 2023 15:03
@snowman2
Copy link
Member

This doesn't look like it supports chunked writing, is that correct?

@sgillies
Copy link
Member Author

sgillies commented Aug 31, 2023

@snowman2 I believe it does. I would expect opener().write() to be called multiple times by a format driver when saving.

rasterio/_vsiopener.pyx Outdated Show resolved Hide resolved
@sgillies
Copy link
Member Author

sgillies commented Sep 8, 2023

A little more documentation is needed, but this is otherwise ready to go.

Copy link
Member

@snowman2 snowman2 left a comment

Choose a reason for hiding this comment

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

Looks good 馃憤

@sgillies sgillies merged commit a3d8837 into main Dec 22, 2023
16 checks passed
@sgillies sgillies deleted the issue2906 branch December 22, 2023 17:37
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.

vsipyopener write mode
3 participants