Skip to content

Commit dc427a6

Browse files
committed
update README
1 parent e390b4f commit dc427a6

File tree

2 files changed

+29
-4
lines changed

2 files changed

+29
-4
lines changed

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ While GeoLambda was initially intended for AWS Lambda it is also useful as a bas
1616
| 1.1.0 | 2.4.1 | |
1717
| 1.2.0 | 2.4.2 | Separate Python (3.7.4) image and Lambda Layer added |
1818
| 2.0.0 | 3.0.1 | libgeotiff 1.5.1, proj 6.2.0 |
19+
| 2.1.0 | 3.2.1 | libgeotiff 1.6.0, proj 7.2.1, openjpeg 2.4.0 |
1920

2021
#### Environment variables
2122

@@ -28,6 +29,29 @@ When using GeoLambda some environment variables need to be set. These are set in
2829

2930
If you just wish to use the publicly available Lambda layers you will need the ARN for the layer in the same region as your Lambda function. Currently, the latest GeoLambda layers are deployed in `us-east-1`, `us-west-2`, `eu-central-1`, `eu-west-2`, and `eu-north-1`. If you want to use it in another region please file an issue or you can also create your own layer using this repository (see instructions below on 'Create a new version').
3031

32+
#### v2.1.0
33+
34+
| Region | ARN |
35+
| ------ | --- |
36+
| us-east-1 | arn:aws:lambda:us-east-1:552188055668:layer:geolambda:4 |
37+
| us-west-2 | arn:aws:lambda:us-west-2:552188055668:layer:geolambda:4 |
38+
| eu-central-1 | arn:aws:lambda:eu-central-1:552188055668:layer:geolambda:4 |
39+
| eu-west-2 | |
40+
| eu-north-1 | |
41+
42+
#### v2.1.0-python
43+
44+
See the [GeoLambda Python README](python/README.md). The Python Lambda Layer includes the libraries `numpy`, `rasterio`, `GDAL`, `pyproj`, and `shapely`, plus everything in the standard GeoLambda layer. Note this is a change from v2.0.0 where both Layers needed to be included in a Lambda.
45+
46+
| Region | ARN |
47+
| ------ | --- |
48+
| us-east-1 | arn:aws:lambda:us-east-1:552188055668:layer:geolambda-python:3 |
49+
| us-west-2 | arn:aws:lambda:us-west-2:552188055668:layer:geolambda-python:3 |
50+
| eu-central-1 | arn:aws:lambda:eu-central-1:552188055668:layer:geolambda-python:3 |
51+
| eu-west-2 | |
52+
| eu-north-1 | |
53+
54+
3155
#### v2.0.0
3256

3357
| Region | ARN |

python/README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ An example Lambda handler is located at [lambda/lambda_function.py](lambda/lambd
1919
Now, use the [Dockerfile](Dockerfile) can be used to create a new Docker image based on any version of GeoLambda with any version of Python by providing the versions as build arguments to `docker run`. This will install the specified version of Python along with any Python packages provided in [requirements.txt](requirements.txt).
2020

2121
```
22-
$ VERSION=2.0.0
23-
$ docker build . --build-arg VERSION=${VERSION} --build-arg PYVERSION=3.7.4 -t <myimage>:latest
22+
$ VERSION=2.1.0
23+
$ docker build . --build-arg VERSION=${VERSION} --build-arg PYVERSION=3.7.9 -t <myimage>:latest
2424
```
2525

26-
If not provided, `VERSION` (the version of GeoLambda to use) will default to `latest` and `PYVERSION` (Python version) will default to `3.7.4`.
26+
If not provided, `VERSION` (the version of GeoLambda to use) will default to `latest` and `PYVERSION` (Python version) will default to `3.7.9`.
2727

2828
**4. Set up development environment and lambda layer zip file**
2929

@@ -55,7 +55,8 @@ You can use the [LambCI Docker images](https://github.com/lambci/docker-lambda)
5555
```
5656
# current dir: geolambda/python
5757
58-
$ docker run --rm -v ${PWD}/lambda:/var/task -v ${PWD}/../lambda:/opt lambci/lambda:python3.7 lambda_function.lambda_handler '{}'
58+
$ docker run -e GDAL_DATA=/opt/share/gdal -e PROJ_LIB=/opt/share/proj \
59+
--rm -v ${PWD}/lambda:/var/task lambci/lambda:python3.7 lambda_function.lambda_handler '{}'
5960
```
6061

6162
The last argument is a JSON string that will be passed as the event payload to the handler function.

0 commit comments

Comments
 (0)