我遇到与在 sp 包中分配 CRS 相关的问题
如果我运行:
sp::CRS(SRS_string='EPSG:4326')
sp::CRS("+init=epsg:4326")
我分别得到这两个错误:
sp::CRS(SRS_string = "EPSG:4326") 中的错误:不适用
sp::CRS("+init=epsg:4326") 中的错误:不适用
我检查了 rgdal 是否使用最小的 PROJ/GDAL 版本:
rgdal::rgdal_extSoftVersion()
GDAL GDAL_with_GEOS PROJ sp
"3.2.1" "TRUE" "7.2.1" "1.4-5"
如果我使用它也有效proj4string
格式为CRS()
功能:
CRS("+proj=utm +zone=47 +a=6377304.063 +b=6356103.038993155 +towgs84=-11,851,5,0,0,0,0 +units=m +no_defs")
但有一条警告消息proj4string
format:
警告信息:
在 showSRID(uprojargs, format = "PROJ", multiline = "NO", Preferred_proj
= Preferred_proj) :丢弃 Proj4 定义中未知的数据
我已经使用以下指南卸载了 R 和 RStudio 以及所有软件包、设置和其他所有内容:如何卸载 R 和 RStudio 以及所有软件包、设置和其他所有内容? https://stackoverflow.com/questions/55204017/how-to-uninstall-r-and-rstudio-with-all-packages-settings-and-everything-else,但是当我重新安装 R,Rstudio 以及所需的软件包时,问题并没有得到解决。