Skip to content
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

OGRCreateCoordinateTransformation() returned NULL: PROJ available? from shinyapps when user runs code in intro-to-spatial-r #5

Open
andysouth opened this issue Feb 3, 2021 · 0 comments
Assignees

Comments

@andysouth
Copy link
Member

andysouth commented Feb 3, 2021

Recurrence of problem in #2

Occurs because of older versions of spatial packages on shinyapps.io

Resetting the crs of objects is solution. But seemingly doing that earlier in the tutorial doesn't persist ???

sf::st_crs(africapitals) <- 4326

#https://stackoverflow.com/questions/61286108/error-in-cpl-transformx-crs-aoi-pipeline-reverse-ogrcreatecoordinatetrans
#If you save an sf-dataframe with a newer version of GDAL, and then try on a system with an older version of GDAL, the projection info cannot be read properly.
#The solution is to re-set the projection:
#st_crs(data) <- 4326

see r-spatial/sf#1419 (comment)

@andysouth andysouth self-assigned this Feb 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant