Skip to content

Calling gdal2tiles.py #106

Description

@PhilCliv

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions