riatelab / maptiles

Download, compose and display map tiles with R
98 stars 12 forks source link

Esri Tiles Inverted #34

Open CorentinVisee opened 3 weeks ago

CorentinVisee commented 3 weeks ago

Hi,

I am contacting you regarding a problem with Esri map tiles. The tiles seem to be reversed (north is south):

library(maptiles)
library(terra)
library(geodata)

tanzania <- gadm(country = "Tanzania", level = 0, path = tempdir())

tanzania_tile <- get_tiles(x = tanzania, crop = T, verbose = T, provider = "Esri.WorldImagery") 

plot(tanzania_tile)
plot(tanzania, add = T, lwd = 2)

image

Or for Senegal image

Do you have any idea where the problem might come from?

Thank you in advance for your help in this matter, Kind regards, Corentin V.

rCarto commented 3 weeks ago

Yes! I'm aware of this problem. It comes from an update of the terra package. I've posted an issue there. https://github.com/rspatial/terra/issues/1627

A solution would be to downgrade the terra version. I'll keep this issue open untill the next terra version.

CorentinVisee commented 3 weeks ago

Thank you for your quick reply!

rCarto commented 1 week ago

It works now with the dev version of terra. See https://github.com/rspatial/terra/issues/1627#issuecomment-2478454885