Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

enable collection metadata gathering

Jason Kent9b79a9b078eb
diff --git a/tasks/buildOptions.sh b/tasks/buildOptions.sh
index f2d15decd..e33bf298d 100755
--- a/tasks/buildOptions.sh
+++ b/tasks/buildOptions.sh
@@ -116,11 +116,10 @@ if [ -e "$BUILD_DIR/colormaps" ] ; then
fi
# Run getCollectionData.py to fetch collection metadata
-# TODO re-enable when ready
-# if [ -e "$OPT_DIR/$OPT_SUBDIR/conceptIds.json" ] ; then
-# "$PYTHON_SCRIPTS_DIR/getCollectionData.py" "$OPT_DIR/$OPT_SUBDIR/conceptIds.json" \
-# "$BUILD_DIR/config/wv.json/collections.json"
-# fi
+if [ -e "$OPT_DIR/$OPT_SUBDIR/conceptIds.json" ] ; then
+ "$PYTHON_SCRIPTS_DIR/getCollectionData.py" "$OPT_DIR/$OPT_SUBDIR/conceptIds.json" \
+ "$BUILD_DIR/config/wv.json/collections.json"
+fi
# Run mergeConfig.py on all directories in /config
configs=$(ls "$BUILD_DIR/config")
diff --git a/tasks/python3/getCollectionData.py b/tasks/python3/getCollectionData.py
index d1c7a3269..d974ae1ad 100755
--- a/tasks/python3/getCollectionData.py
+++ b/tasks/python3/getCollectionData.py
@@ -114,4 +114,5 @@ with open(input_file, 'rt') as concept_id_map:
collection_data = process_requests(wv_product_dict)
with open(output_file, "w") as fp:
- json.dump({ 'collections': collection_data }, fp)
\ No newline at end of file
+ # Format of this object will determine how this data is combined into wv.json
+ json.dump({ 'layers': collection_data }, fp)
\ No newline at end of file