-
Notifications
You must be signed in to change notification settings - Fork 12
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a snap_to
method to GeoBoxes to enable coercing GeoBoxes to the same pixel alignment
#59
Comments
Probably also worth adding Maybe also worth supporting alignment between geoboxes of different resolutions when pixel sizes are related via exact integer scale |
Kirill888
added a commit
that referenced
this issue
Sep 2, 2022
Kirill888
added a commit
that referenced
this issue
Sep 5, 2022
Kirill888
added a commit
that referenced
this issue
Sep 5, 2022
This was referenced Nov 23, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have two low-resolution GeoBoxes created by "zooming out" of two existing higher resolution dataset GeoBoxes:
Although these GeoBoxes share the same resolution and CRS, they do not share the same pixel alignment, resulting in pixels that do not align correctly:
I would like to be able to "snap"
lowres_geobox2
to the pixel alignment oflowres_geobox1
, so that both of my low resolution grids align perfectly:Snapping is currently supported when creating a new GeoBox directly (e.g. via
GeoBox.from_bbox
), however it would be useful to have a GeoBox method that would allow a user to perform snapping on existing GeoBoxes as well.The text was updated successfully, but these errors were encountered: