Currently orthomosaic imagery that is already present on mapbox is not updated even if the underlying orthomosaic is changed. This is based on a manual check in upload_mapbox.py to avoid excessive uploads during development.
It is possible to force imagery to be updated when running upload_mapbox.py by using the CLI argument python upload_mapbox.py /path/to/file --force-upload. We should implement a way to pass this argument to Snakemake so that we can trigger this behavior for workflow runs.
Currently orthomosaic imagery that is already present on mapbox is not updated even if the underlying orthomosaic is changed. This is based on a manual check in
upload_mapbox.py
to avoid excessive uploads during development.It is possible to force imagery to be updated when running
upload_mapbox.py
by using the CLI argumentpython upload_mapbox.py /path/to/file --force-upload
. We should implement a way to pass this argument to Snakemake so that we can trigger this behavior for workflow runs.Looks like the general approach to this is here: https://snakemake.readthedocs.io/en/stable/snakefiles/configuration.html
See example here: https://stackoverflow.com/a/40523933