-
Notifications
You must be signed in to change notification settings - Fork 803
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NOTE: rgdal::checkCRSArgs: no proj_defs.dat in PROJ.4 shared file #351
Comments
No idea, but this looks like an rgdal issue. @rsbivand I assume you know what this issue represents. |
Thanks for your reply Hobu , but I m completely newb to R , just venture in like one week ago and stumbled on this issue . Is it a bug that is awaiting to be fixed ? |
This is caused by PROJ 4.9.0 and 4.9.1 being released without the nad/proj_defs.dat, which inserts automatically ellipsoid settings if none are given by the user. You can see this in the proj list thread: http://lists.maptools.org/pipermail/proj/2015-September/007209.html The resolutions are either to add the missing file to the share/proj folder from: |
Thanks , so i either create a folder called nad in the /usr/share/proj directory and input the proj_def.dat inside or i remove rgdal and compile it from source |
No, neither. nad/proj_defs.dat is where it is in the sources. Place a copy of proj_defs.dat in /usr/share/proj and see whether the message disappears. Better still, upgrade proj to 4.9.2, which fixes other bugs too. None of this is a PROJ issue, as it was resolved when 4.9.2 was released. |
thanks for your help , i compile the file https://github.com/OSGeo/proj.4 install then it installed in /usr/local/share/proj then i moved the file to /usr/share/ , replacing the proj file overther and it worked . i was almost giving up . ha ! almost thought of buying a laptop with windows OS |
I just compiled the proj.4 and rgdal found it automatically, didn't have to move it to /usr/share |
Hi, coreysparks I am interested in your solution, do u mind share it here? thankyou |
@Tzhong16 : what is your question? If this is an R-sig-geo question, ask on R-sig-geo. Always state your OS, and if you installed PROJ.4, how you did that and what version. Before, Windows users were those who simply assumed that everyone used the same systems as they did, now it is definitely OSX user, who expect things to happen without any effort from them. If you are an OSX user of the CRAN rgdal binary, and are seeing the above message: "Until we get it fixed, please see if you can download the equivalent Windows binary package: https://cran.r-project.org/bin/windows/contrib/3.3/rgdal_1.2-5.zip unzip it (do not install it), and copy the proj/ and gdal/ folders with
The problem you found was that the person building CRAN rgdal OSX binaries |
Thank you so much for your reply, @rsbivand. Finally I solve the problem. What I did: Step 1: Install PROJ.4 Before install PROJ.4 I need to install xcode from App Store I follow the the website to install my PROJ.4
Step 2: Add missing file proj_def.dat the proj default install to /usr/local/share/ Step3: Copy the proj document from /usr/local/share/ to /usr/share/
Before copy the proj document from /usr/local/share/ to /usr/share/ , you need to disable Apple's disable Apple's SIP can follow http://apple.stackexchange.com/questions/208478/how-do-i-disable-system-integrity-protection-sip-aka-rootless-on-os-x-10-11 Remember enable SIP after your copy. |
os x version 10.12.2, R version 3.3.2 sincere pumpkin patch I addressed this issue using the fix available here: |
I am the rgdal maintainer. Do listen when I tell you what to do: what I say is authoritative: If you are an OSX user of the CRAN rgdal binary, and are seeing the startup warning message, check the contents of:
If the proj and gdal directories are missing, you have installed a recent CRAN OSX binary which was built without two key metadata directories. Repeating: "Until we get it fixed, please see if you can download the equivalent Windows binary package: https://cran.r-project.org/bin/windows/contrib/3.3/rgdal_1.2-5.zip unzip it (do not install it), and copy the proj/ and gdal/ folders with their contents to the folder shown (in R) by:
The problem you found was that the person building CRAN rgdal OSX binaries forgot to set configure arguments to package these two folders." This is also mentioned on the authoritative list, the one package maintainers follow, look for this thread. |
when i run readOGR(".", "E06000042") on Rstudio on a Fedora 23 , 64bit, it brings me this problem ,
it runs but bring me this warning NOTE: rgdal::checkCRSArgs: no proj_defs.dat in PROJ.4 shared files
Any assistance please.
Thanks
The text was updated successfully, but these errors were encountered: