r-spatial / RQGIS3

GNU Lesser General Public License v3.0
69 stars 19 forks source link

R software Terra package error cannot find proj.db file #31

Closed atkilt closed 3 months ago

atkilt commented 3 months ago

Dear all, I am trying to read a shapefile with .geojson extension using the terra as follows:

atqq<-vect("D:/Z_IRM_RFS/Wolmera/spatial_data/input/subdiv_wel_Fbean.geojson")

Somehow, I am not able to read it. What is the problem. I used to read the shapefile before gdal was expired. Warning message: PROJ: proj_create_from_database: Cannot find proj.db (GDAL error 1)

I am using Rstudio 2023.06.1 Build 524. I changed it to this old one due to the problem with the latest (December version). I am also using R.4.3.2 I also changed it from r 4.3.3.

atkilt commented 3 months ago

I solved the issue, the problem is with the terra package. please install it from github: Warning message: PROJ: proj_identify: Cannot find proj.db (GDAL error 1)