Can someone see what's wrong with this:
library(rgdal)
# Make a two-column matrix, col1 = long, col2 = lat
xy <- cbind(c(-107), c(26))
# Convert it to UTM coordinates (in units of meters)
project(xy, "+proj=utm +zone=51 ellps=WGS84")
I understand that Latitude greater than 84 and smaller than 80 are invalid but why do I get:
In project(xy, "+proj=utm +zone=51 ellps=WGS84") :
1 projected point(s) not finite
Thanks!
use positive number for longitude (107, instead of -107). negative is for western hemisphere
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With