Skip to content
Prev 27598 / 29559 Next

rgdal, PROJ6 and "+init=epsg" syntax on Jupyter/conda

After going round in circles most of the day, I finally discovered that the
PROJ_LIB environment variable within my Dockerfile did not match my conda
environment. When I loaded rgdal I saw

    Path to PROJ.4 shared files: (autodetected)

in the output and assumed all was OK, but having explicitly set the
environment variable I now see

    Path to PROJ.4 shared files: /opt/conda/share/proj

and everything works as expected.

On a related note, some of my Python code also has started to give errors
similar to those reported by Edzer e.g.

init=epsg:/init=IGNF: syntax not supported in non-PROJ4 emulation mode

I suspect these issues probably *are *caused by API changes in PROJ6, but
my original issue is unrelated and was due to incorrect paths in my
conda/Docker environment.

Thanks for your help, Edzer! I look forward to working more with R spatial
tools in the future :-)


James.

On Thu, 12 Sep 2019 at 12:30, Edzer Pebesma <edzer.pebesma at uni-muenster.de>
wrote: