Skip to content

Keep south-up raster windows in native row order - #324

Draft
Sinkleberg wants to merge 1 commit into
perrygeo:masterfrom
Sinkleberg:codex/south-up-raster-windows
Draft

Sinkleberg wants to merge 1 commit into
perrygeo:masterfrom
Sinkleberg:codex/south-up-raster-windows

Conversation

@Sinkleberg

Copy link
Copy Markdown

Positive-y rasters could produce a negative window height or place a cropped array at the wrong coordinates. This builds on Matthew Perry’s southup prototype for #98 and keeps the raster’s original row order, including for point interpolation.

I tested NumPy arrays and GeoTIFFs. All 136 tests pass with Affine 2.4. With #323 applied, all 137 pass on both Affine 2.4 and 3.0.1. I’ve left this as a draft while #323 is open because the existing coordinate operators raise deprecation warnings on 3.0.1.

Refs #98. This covers axis-aligned rasters. 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.

1 participant