Skip to content
Snippets Groups Projects
Commit 4326d079 authored by David Hoese's avatar David Hoese
Browse files

Fix a few bugs introduced in tile generation

parent cf6b7bdf
No related branches found
No related tags found
No related merge requests found
......@@ -90,6 +90,8 @@ def main():
help="Input geotiffs to generate tiles for (separate from product lists with '--')")
args = parser.parse_args()
# allow for glob patterns to reduce number of files passed through command line
args.input_files = [fn for glob_pat in args.input_files for fn in glob(glob_pat)]
groups = group_files(args.products, args.input_files)
all_added = set()
all_removed = set()
......
......@@ -67,7 +67,9 @@ run_tile_gen() {
fi
echo "Generating tiles in directory: ${out_dir}"
for product in ${G2G_PRODUCTS}; do
set -x
json_times_changed=$(python3 generate_tiles.py ${TILE_ARGS} --json-times -p ${product} -- ${out_dir} "${path}")
set +x
# OUT/<product>/<product>.shp
glob_pattern="${out_dir/\{product\}/${product}}/*.shp"
# Remove the /data prefix
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment