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
If I install proj-data locally on a windows setup in an anaconda environment, and explicitly set pyproj.network.set_network_enabled(False)
I would expect there to be no issue.
However, if for some reason user_data_dir contains some cache, and I execute a difficult projection transformation, this apparently fails to use the local proj data folder.
crs_from = 'epsg:31370+5710'
crs_to = '+proj=geocent +ellps=WGS84 +datum=WGS84'
tg = pyproj.transformer.TransformerGroup(crs_from, crs_to)
for tf in tg.transformers:
print(tf)
Logging as follows:
pyproj info:
pyproj: 3.5.0
PROJ: 9.2.0
data dir: C:\Users\dierckxw\Miniconda3\envs\projenvdata2\Library\share\proj
user_data_dir: C:\Users\dierckxw\AppData\Local/proj
PROJ DATA (recommended version): 1.13
PROJ Database: 1.2
EPSG Database: v10.082 [2023-02-06]
ESRI Database: ArcGIS Pro 3.1 [2023-19-01]
IGNF Database: 3.1.0 [2019-05-24]
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
If I install proj-data locally on a windows setup in an anaconda environment, and explicitly set
pyproj.network.set_network_enabled(False)
I would expect there to be no issue.
However, if for some reason user_data_dir contains some cache, and I execute a difficult projection transformation, this apparently fails to use the local proj data folder.
Logging as follows:
pyproj info:
pyproj: 3.5.0
PROJ: 9.2.0
data dir: C:\Users\dierckxw\Miniconda3\envs\projenvdata2\Library\share\proj
user_data_dir: C:\Users\dierckxw\AppData\Local/proj
PROJ DATA (recommended version): 1.13
PROJ Database: 1.2
EPSG Database: v10.082 [2023-02-06]
ESRI Database: ArcGIS Pro 3.1 [2023-19-01]
IGNF Database: 3.1.0 [2019-05-24]
System:
python: 3.11.3 | packaged by conda-forge | (main, Apr 6 2023, 08:50:54) [MSC v.1934 64 bit (AMD64)]
executable: C:\Users\dierckxw\Miniconda3\envs\projenvdata2\python.exe
machine: Windows-10-10.0.19045-SP0
Python deps:
certifi: 2022.12.7
Cython: None
setuptools: 67.7.2
pip: 23.1.2
DEBUG:PROJ_DEBUG: pj_open_lib(be_ign_bd72lb72_etrs89lb08.tif): call fopen(C:\Users\dierckxw\AppData\Local/proj\be_ign_bd72lb72_etrs89lb08.tif) - failed
DEBUG:PROJ_DEBUG: pj_open_lib(bd72lb72_etrs89lb08.gsb): call fopen(C:\Users\dierckxw\AppData\Local/proj\bd72lb72_etrs89lb08.gsb) - failed
DEBUG:PROJ_DEBUG: pj_open_lib(be_ign_hBG18.tif): call fopen(C:\Users\dierckxw\AppData\Local/proj\be_ign_hBG18.tif) - failed
Beta Was this translation helpful? Give feedback.
All reactions