rayvista
rayvista copied to clipboard
Error with long and lat
Hi there, I'm fairly new to this, and I hope the question isn't too dumb. I have been getting the following error message:
Error: The elevatr package requires longitude in a range from -180 to 180.
It happens every time I set a negative value for .lat and a positive one for .long. I tried to run this for New Zealand and ended up with and area polygon of:
[,1] [,2]
[1,] 175.0446 -39.48497
[2,] 176.7821 -39.48497
[3,] 176.7821 -37.74747
[4,] 175.0446 -37.74747
[5,] 175.0446 -39.48497
Which looks fairly similar to the Monterey example (which runs perfectly fine), but the combination of parameters doesn't. I hope you can help me with this issue. It's a great package, and I'd love to use it.
Cheers, Laurenz
Hey, check out this issue: https://github.com/h-a-graham/rayvista/issues/34#issuecomment-1154252859 basically you just have to install the Dev version of elevatr from GitHub and it should then work. Reminds me that I should just add elevatr as a remotes install on this package. Leave this issue open and I'll fix it on my end when I get a chance. For now though just install elevatr from GitHub and you should be up and running. 🤞
Hi mate, Thanks for the fast reply! I'll give it a go, and thanks for the amazing package!
Thanks for that! It definitely did the trick, it works perfectly now.