File tree Expand file tree Collapse file tree 3 files changed +21
-5
lines changed
Expand file tree Collapse file tree 3 files changed +21
-5
lines changed Original file line number Diff line number Diff line change 11# GDAL based docker-lambda
22
33<p align =" center " >
4- <img src =" " style =" max-width : 800px ;" alt =" docker-lambda " ></a >
4+ <img src =" https://user-images.githubusercontent.com/10407788/95621320-7b226080-0a3f-11eb-8194-4b55a5555836.png " style =" max-width : 800px ;" alt =" docker-lambda " ></a >
55</p >
66<p align =" center " >
77 <em >AWS lambda (Amazonlinux) like docker images and lambda layer with GDAL.</em >
@@ -81,3 +81,21 @@ layer.zip
8181 |___ lib/ # Shared libraries (GDAL, PROJ, GEOS...)
8282 |___ share/ # GDAL/PROJ data directories
8383```
84+
85+ ## AWS Lambda config
86+
87+ When using lambgeo layer you ** HAVE TO** set GDAL_DATA and PROJ_LIB environment variable.
88+
89+ - When using lambgeo gdal layer
90+
91+ - ** GDAL_DATA:** /opt/share/gdal
92+ - ** PROJ_LIB:** /opt/share/proj
93+
94+ - If you create a package using the gdalX.X docker image.
95+
96+ - ** GDAL_DATA:** /var/task/share/gdal
97+ - ** PROJ_LIB:** /var/task/share/proj
98+
99+ ### Other variable
100+
101+ Starting with gdal3.1 (PROJ 7.1), you can set ` PROJ_NETWORK=ON ` to use remote grids: https://proj.org/usage/network.html
Original file line number Diff line number Diff line change 1- FROM lambgeo/lambda:gdal3.0-py3.7
1+ FROM lambgeo/lambda-base :gdal3.0-py3.7
22
33# Build a lambda package to be used with the lambda layer.
44# Basically we don't want to replicated existant modules found in the layer ($PYTHONPATH)
Original file line number Diff line number Diff line change 1- # Here we create a package (like previously with amazonlambda-gdal)
2- # we use the "-build" image because we don't want need pre-installed libaries
3- FROM lambgeo/lambda:gdal3.0-py3.7
1+ FROM lambgeo/lambda-base:gdal3.0-py3.7
42
53ENV PACKAGE_PREFIX=/var/task
64
You can’t perform that action at this time.
0 commit comments