You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is an R context: running R --vanilla < script.R with the following script
library(sf)
sf:::CPL_set_data_dir("/usr/local/share/proj") # this is the right directorydata.frame(lat=10, lon=0) |>
st_as_sf(crs=4326, coords= c("lon", "lat")) |>
st_transform(crs=32719)
works, but when PROJ_LIB is set to an illegal location (or location with older proj.db), e.g. running this by
This is found under PROJ 9.3.0 here and 9.3.1 (local docker image). On earlier versions (e.g. locally, ubuntu, PROJ 9.1.1) this did not create a problem. My understanding was that setting a correct search path with proj_context_set_search_paths() (which is what sf:::CPL_set_data_dir() does) should override any PROJ_LIB. (same results for PROJ_DATA instead of PROJ_LIB).
Let me know if you want me to prepare a C example.
This is an R context: running
R --vanilla < script.R
with the following scriptworks, but when PROJ_LIB is set to an illegal location (or location with older proj.db), e.g. running this by
$ PROJ_LIB=/tmp R --vanilla < script.R
gives the following output:
This is found under PROJ 9.3.0 here and 9.3.1 (local docker image). On earlier versions (e.g. locally, ubuntu, PROJ 9.1.1) this did not create a problem. My understanding was that setting a correct search path with
proj_context_set_search_paths()
(which is whatsf:::CPL_set_data_dir()
does) should override anyPROJ_LIB
. (same results forPROJ_DATA
instead ofPROJ_LIB
).Let me know if you want me to prepare a C example.
Also reported here.
The text was updated successfully, but these errors were encountered: