h-a-graham / rayvista

An R plugin for {rayshader} to view a 3D vista anywhere on earth.
GNU General Public License v3.0
107 stars 5 forks source link

Error: The elevatr package requires longitude in a range from -180 to 180. #34

Closed dougaltoms closed 2 years ago

dougaltoms commented 2 years ago

Hey,

When running this code from the readme file:

sistan_suture<- plot_3d_vista(27.82153210664024, 60.5107976729012,radius=15000,
                              overlay_detail = 13, elevation_detail=10,
                              show_vista = FALSE)

I get this response:

Error: The elevatr package requires longitude in a range from -180 to 180.
Retrying in 2 seconds.
Error: The elevatr package requires longitude in a range from -180 to 180.
Retrying in 1 seconds.
Error: The elevatr package requires longitude in a range from -180 to 180.
Retrying in 6 seconds.
Error: The elevatr package requires longitude in a range from -180 to 180.
Retrying in 8 seconds.
Error: The elevatr package requires longitude in a range from -180 to 180.
Error in `stop_rate_excess()`:
! Request failed after 5 attempts

I get similar response when using .lat <- 46.504, .long<- 12.946 But code runs successfully with .lat <- 57.219566, .long <- -6.092690

Any idea what is causing this please? Thanks

h-a-graham commented 2 years ago

Hey,

So I think this may be the same problem as this issue: https://github.com/h-a-graham/rayvista/issues/33

Can you try installing elevatr from GitHub to see if that resolves things?

remotes::install_github("jhollist/elevatr")

Cheers, Hugh

dougaltoms commented 2 years ago

That's done the trick, many thanks

AmitLevinson commented 2 years ago

This solved it, thanks!