为了获得经度和纬度坐标,您需要从投影坐标系(NAD 83)转换到地理坐标系(WGS 84)。在您的数据中,您正在使用以英尺为单位的投影,因此您的伊利诺伊西部投影是正确的。但是,在原始帖子中,并且下面突出显示的错误是将
spTransform
从 NAD83 转换到 NAD83,导致出现错误的数据。有关投影和地理坐标系之间差异的更多信息可以在此处找到:
这里。相反,您需要在转换中使用 WGS84 投影,如下所示:**正如Jim指出的,现在已经包含了从英尺到米的转换。
library(rgdal)
nad83_coords <- data.frame(x=c(577430), y=c(2323270))
nad83_coords <- nad83_coords *.3048
coordinates(nad83_coords) <- c('x', 'y')
proj4string(nad83_coords)=CRS("+init=esri:102272")
coordinates_deg <- spTransform(nad83_coords,CRS("+init=epsg:4326"))
coordinates_deg
SpatialPoints:
x y
[1,] -96.57822 42.86484
Coordinate Reference System (CRS) arguments: +init=epsg:4326 +proj=longlat +datum=WGS84 +no_defs +ellps=WGS84 +towgs84=0,0,0
如果您不想转换,我们可以使用以下投影EPSG: 3531
library(rgdal)
nad83_coords <- data.frame(x=c(577430), y=c(2323270))
coordinates(nad83_coords) <- c('x', 'y')
proj4string(nad83_coords)=CRS("+init=EPSG:3531")
coordinates_deg <- spTransform(nad83_coords,CRS("+init=epsg:4326"))
coordinates_deg
SpatialPoints:
x y
[1,] -96.57821 42.86485
Coordinate Reference System (CRS) arguments: +init=epsg:4326 +proj=longlat +datum=WGS84 +no_defs +ellps=WGS84 +towgs84=0,0,0
我明白你在说坐标应该放在哪里,查看空间参考网站,你的坐标在该投影窗口内,但它们没有按预期输出。仍在继续探究。
% zone 是1983年的州平面坐标系统 %输出: % 纬度(latitude)为正北 % 经度(longitude)为正西 % 纬度和经度以度为单位(内部计算以弧度为单位) - Rotail