Skip to content

Use the supported Affine operator for raster coordinates - #323

Open
Sinkleberg wants to merge 1 commit into
perrygeo:masterfrom
Sinkleberg:codex/affine-coordinate-operators
Open

Sinkleberg wants to merge 1 commit into
perrygeo:masterfrom
Sinkleberg:codex/affine-coordinate-operators

Conversation

@Sinkleberg

Copy link
Copy Markdown

Affine 3 warns when rasterstats uses * to transform coordinates. This uses @ where available and keeps Affine 2 working. Closes #318.

I reproduced the warning in a point query and the zonal stats CLI. Both returned the same values after the fix. The suite passed on Windows with Affine 2.4 and 3.0.1 on Python 3.13 and 3.14 (three skips on 3.14).

Prepared with Codex.

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.

newer versions of numpy throw warnings at using matrix multiplications with the * operator

1 participant