-
Notifications
You must be signed in to change notification settings - Fork 96
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
PROJ: Cannot open https://cdn.proj.org/XXXXXXXXXXXX.tif #1351
Comments
I do not see that. Can you still reproduce it or was it a temporary glitch? |
No, I still get the warnings. I thought the output is still useful but I need to check further because, in the example below, it doesn't work correctly. Projecting the shapefile of California using terra and sf: 1) using terra (proj_CA) results in a wrong shape while 2) using sf (proj_CA_sf) works perfectly fine.
original shape (california_shapefile): |
Can you provide some info about your system, such as |
And does this work
|
I also tried the code below you provided and I am getting the same wrong projected shapefile (i.e., the same as proj_CA above).
|
Hi. I have seen errors like this before, but can't reproduce myself right now. I think there is a problem during SSL verification that is causing the GDAL/PROJ errors. When you call The certificate trust error could be caused by being behind firewall or proxy in which case you would need to speak to whoever manages that. Another option would be to set up PROJ to use local versions of the files needed for these types of conversions. To get around this on the client side, and still use CDN sources, you may need to point curl at a file with your trusted certificates, or toggle environment variables a bit. Since your sessionInfo shows you are on Windows, you may need something like this: Sys.setenv("GDAL_HTTP_USE_CAPI_STORE"="YES") Or you may need to disable verification entirely (it might "work") Sys.setenv("GDAL_HTTP_UNSAFESSL"="YES") It is probably not a good idea to use
There are also similar configuration options for PROJ itself: https://proj.org/en/9.2/usage/environmentvars.html |
I quickly tried setting "GDAL_HTTP_USE_CAPI_STORE" and "GDAL_HTTP_UNSAFESSL" to "YES" in the environment. But, it didn't work and I still get the same results. |
Do you also see the problems with the |
No, in both cases (TRUE or FALSE), sf results in a desired output. I tried below and both proj_CA_sf (from previous code above) and proj_CA_sf2 are looking fine.
|
why do I get these warnings and, if it's an issue, is there any way to fix it? Thanks.
There were 49 warnings (use warnings() to see them)
terra 1.7.55
The text was updated successfully, but these errors were encountered: