我有坐标,所有这些都应该位于DC中,但我无法弄清楚如何将它们从NAD 83转换为R中的纬度和经度。我正在使用RGDAL包中的spTransform()函数并获得错误关于非符合数据。

library(rgdal)
nad83_coords <- data.frame(x=c(396842.6, 397886.9, 398315.5, 398154.3, 398010.3), y=c(140887.1, 139847.0, 138743.9, 139534.5, 138697.3))
coordinates(nad83_coords) <- c('x', 'y')
proj4string(nad83_coords) <- CRS("+init=epsg:4269")
Error in `proj4string<-`(`*tmp*`, value = <S4 object of class "CRS">) : 
  Geographical CRS given to non-conformant data: 398315.5 140887.1
.

proj4strings的其他组合产生相同的错误。我相信错误是因为坐标太大了,但我不确定为什么会。坐标的文档如下:

值在马里兰州州平面仪表NAD 83地图投影中。

我是非常新的映射和预测,并赞赏任何帮助。

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top