Skip to content
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

Respect extent and res element type in rasterize/resample #861

Open
tiemvanderdeure opened this issue Jan 17, 2025 · 0 comments
Open

Respect extent and res element type in rasterize/resample #861

tiemvanderdeure opened this issue Jan 17, 2025 · 0 comments

Comments

@tiemvanderdeure
Copy link
Collaborator

To follow up on some discussion in #852

Currently in rasterize and resample, if the user provides an extent as to, the resulting dimensions are always Float64 regardless of the element type of the input extent and resolution.

E.g.

using Rasters, Extents, ArchGDAL
ext = Extent(X = (1, 10), Y = (1, 10))
ras1 = rasterize((1,1), to=ext, res=1, fill=1, reducer=sum)
ras2 = resample(rasr, to=ext, res = 1)
dims(ras1)

At least for rasterize this is a conversion happening in Rasters._extent

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

No branches or pull requests

1 participant