Refactor pixel snapping into a single solution?
phargogh opened this issue · comments
We have 3 functions that snap pixel coordinates to a raster's grid in similar but slightly different ways:
warp_raster
andcreate_raster_from_bounding_box
both take the same approachalign_bbox
(used byzonal_statistics
, added in #333 )
The approaches are similar but slightly different. Now that we have 3 use cases, it might be worth looking at whether it makes sense to refactor in a way that covers these 3 cases and reduces duplication.