Skip to content

[rasterio] Accept Band and (dataset, bidx) sources in features.shapes - #16619

Merged
srittau merged 1 commit into
python:mainfrom
thomas-maschler:rasterio-shapes-source
Oct 27, 2026
Merged

srittau merged 1 commit into
python:mainfrom
thomas-maschler:rasterio-shapes-source

Conversation

@thomas-maschler

@thomas-maschler thomas-maschler commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

features.shapes() accepts a Band or a (dataset, bidx) tuple as source and a Band as mask, as documented and implemented in _shapes (tuple support fixed in rasterio#3638).

@github-actions

Copy link
Copy Markdown
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@srittau
srittau merged commit d73fd84 into python:main Oct 27, 2026
74 checks passed
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