developmentseed/geolambda

Calling gdal2tiles.py

Opened this issue · 1 comments

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!

Hey @PhilCliv If it helps you can use gdal2tiles library, it calls the same gdal2tiles.py script.