我想重新投影WGS84到基於GDA94數據的UTM投影MGA區域53的座標。我的結果是無窮大,這絕對是不正確的。我使用的r proj4
包像這樣:使用R的Proj4再投影
> library(proj4)
> df <- data.frame("x" = c(131.1, 131.102, 131.1106, 133.34), "y" = c(-13.23, -13.243, -13.22, -22.66))
> df
x y
1 131.1000 -13.230
2 131.1020 -13.243
3 131.1106 -13.220
4 133.3400 -22.660
> ptransform(data = df, src.proj = "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs", dst.proj = "+proj=utm +zone=53 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs")
$x
[1] Inf Inf Inf Inf
$y
[1] Inf Inf Inf Inf
$z
[1] 0 0 0 0
>
這是怎麼回事錯在這裏?
你有沒有試過沉默= F,看看是否有任何警告? – VitoshKa 2010-10-21 05:56:45
我有,並且它只警告Z值,我不關心這裏。 – fmark 2010-10-21 07:14:06