Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calling gdal2tiles.py #106

Open
PhilCliv opened this issue Oct 20, 2021 · 1 comment
Open

Calling gdal2tiles.py #106

PhilCliv opened this issue Oct 20, 2021 · 1 comment

Comments

@PhilCliv
Copy link

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!

@saheelBreezo
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants