Skip to content

Comments

Force uint8 dtype for geometry mask#3272

Merged
sgillies merged 1 commit intorasterio:mainfrom
groutr:mask-uint8
Dec 6, 2024
Merged

Force uint8 dtype for geometry mask#3272
sgillies merged 1 commit intorasterio:mainfrom
groutr:mask-uint8

Conversation

@groutr
Copy link
Contributor

@groutr groutr commented Dec 5, 2024

Addresses #3202 .

We know we are generating a mask, and can inform rasterize to use uint8 dtype. Because the return is uint8, we can simply return a boolean view of the array.

@sgillies sgillies self-assigned this Dec 6, 2024
@sgillies sgillies added the bug label Dec 6, 2024
Copy link
Member

@sgillies sgillies left a comment

Choose a reason for hiding this comment

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

Thanks @groutr !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-1.4 To be backported to maint-1.4 bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants