lambgeo / docker-lambda

AWS Lambda friendly GDAL Docker images and AWS Lambda layer
MIT License
121 stars 17 forks source link

PROJ_DATA to replace PROJ_LIB environment variable #48

Open vincentsarago opened 2 years ago

vincentsarago commented 2 years ago

https://github.com/OSGeo/PROJ/pull/3253

jcary741 commented 1 year ago

I was able to get around this using this at the top of my handler file:

import pyproj
pyproj.datadir.set_data_dir(os.path.join(os.path.dirname(__file__), 'share/proj'))