rgdal包lat/long - > UTM

cs0*_*815 7 gis r

有人可以看出这有什么问题:

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")
Run Code Online (Sandbox Code Playgroud)

我知道纬度大于84且小于80是无效的,但为什么我会得到:

In project(xy, "+proj=utm +zone=51 ellps=WGS84") :
  1 projected point(s) not finite
Run Code Online (Sandbox Code Playgroud)

谢谢!

yos*_*bai 11

使用正数为经度(107,而不是-107).西方半球的负面影响