Skip to content

Instantly share code, notes, and snippets.

View julienr's full-sized avatar

Julien Rebetez julienr

View GitHub Profile
"""
This is a local proxy to intercept GDAL vsigs request (when storing data
on google cloud storage) and inject error codes to exercise the logging
codepath.
Usage:
$ python vsi_proxy.py
$ CPL_GS_ENDPOINT=http://localhost:9999/ gdal_translate -srcwin 5000 5000 2000 2000 /vsigs/mybucketfile.tif out.tit
"""