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
Error in sp::CRS(SRS_string = prj$wkt) : no arguments in initialization list #56
Comments
What do you get with the following?
Most likely you have older versions of the required libraries (GDAL and PROJ). |
Matrix products: default locale: attached base packages: other attached packages: loaded via a namespace (and not attached):
|
Your version of R, GDAL, and PROJ are all old. Elevatr will not run on version 3.6.2. The oldest that I regularly test on is 3.6.3. If you can, the easiest solution would be to update R and re-install rgdal, sp, sf, raster, and elevatr. I think you would also need to manually update GDAL and PROJ. Windows and I think now Mac handle those updates, but since you are on Linux that still needs to happen manually, I believe. I also noticed that you are using AIMS Desktop (Just checked it out. Looks like a nice project!) On their website they have a 2020 version available. That might also solve the issue for you. Good luck! |
@jhollist , sorry, you are missing the point, which is that on many legacy systems, old PROJ and GDAL run, because newer builds are not available. It isn't the R version, here it is the PROJ version, for which Most Centos clusters run old PROJ, I think this is the case here. The key problem is that |
Modifications pushed to |
@rsbivand Thanks for the clarification on this. All of the PROJ changes have clearly tied me in knots a bit. I'll update my tests with your suggestion. Should be able to get to it sometime this week. I appreciate you taking the time to push this fix (and for all you do for #rspatial)! |
Sorry for delay on getting to this, but I have the changes you suggest implemented in the tests . Working on getting a CRAN release ready. Hopefully by tomorrow... |
@rsbivand Updates just hit CRAN. I have an Red Hat machine with PROJ 4.8.0 on it. With the version of sp on https://github.com/rsbivand/sp I was able to test this new version without error. So, I think I got everything set. Thank you again for your help and patience! |
@Fonteh-Bonaventure can you confirm that the new version of elevatr on CRAN fixes the issue for you? I will wait a couple of weeks and if I don't hear otherwise will close this issue out. |
Hi @jhollist, R version 4.1.1 (2021-08-10) Matrix products: default locale: attached base packages: other attached packages: loaded via a namespace (and not attached): Maybe this info might be useful for you. |
@otsegun Thank you! This is really helpful and I am happy to know that the fixes on GitHub appear to work. |
I recently installed elevatr in my linux system and I encountered this error when I tried running the sample code in the example on get_elev_points() function in the documentation. What am I supposed to change?
The text was updated successfully, but these errors were encountered: