- AWS Account
- Docker
- node + npm
# Build Amazon linux AMI docker container + Install Python modules + create package
git clone https://github.com/vincentsarago/lambda-tiler.git
cd lambda-tiler/
make all
#configure serverless (https://serverless.com/framework/docs/providers/aws/guide/credentials/)
npm install
sls deploy
Inputs:
- url: any valid url
example:
$ curl {you-endpoint}/bounds?url=https://any-file.on/the-internet.tif
{"url": "https://any-file.on/the-internet.tif", "bounds": [90.47546096087822, 23.803014490532913, 90.48441996322644, 23.80577697976369]}
Inputs:
- url: any valid url
Options:
- rgb: select bands indexes to return (e.g: (1,2,3), (4,1,2))
- nodata: nodata value to create mask
example:
$ curl {you-endpoint}/tiles/7/10/10.png?url=https://any-file.on/the-internet.tif