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

tile_spec is not doing raster profile aspect ratio correctly #13

Open
mdsumner opened this issue Jul 18, 2024 · 0 comments
Open

tile_spec is not doing raster profile aspect ratio correctly #13

mdsumner opened this issue Jul 18, 2024 · 0 comments

Comments

@mdsumner
Copy link
Member

If we do this, we get tiles that have half the resolution in the y direction.

x <- tile_spec(c(256, 256), c(-2, 2, -1, 1) * 1e6, profile = "raster", zoom = 2, 
               crs = "+proj=laea +lon_0=147 +lat_0=-42")
diff(sort(unique(c(x$xmin, x$max))))
[1] 1e+06 1e+06 1e+06
diff(sort(unique(c(x$ymin, x$ymax))))
[1] 5e+05 5e+05 5e+05 5e+05

but in mercator they are equal as expected

diff(sort(unique(c(x$xmin, x$max))))
[1] 10018754
diff(sort(unique(c(x$ymin, x$ymax))))
[1] 10018754 10018754

all cases should give equal steps

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