developmentseed / developmentseed/geolambda
Calling gdal2tiles.py
- Dominant language
- Dockerfile
- Stars
- 306
- Forks
- 84
- PR merge metrics
- No merged PRs in 30d
Description
I'm desperately trying to call the **gdal2tiles.py** script from AWS lambda function like this
```
import json
import os
from osgeo import gdal
def lambda_handler(event, context):
os.system("gdal2tiles.py -p -z [0-6] test.jpg")
```
But I get this error message **sh: gdal2tiles.py: command not found**
Any idea what is wrong?
Thanks!
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the Lambda handler shown in the report and check whether gdal2tiles.py is installed and available on PATH in the AWS Lambda runtime. Verify the GDAL runtime or packaging setup and confirm that the handler can invoke gdal2tiles.py without the command-not-found error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, python
- Domain
- cloud
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100