Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

wip

ZachTRiceb2b0f50281ae
diff --git a/tasks/build/mergeConfig.js b/tasks/build/mergeConfig.js
index b8ebe4048..4e7d26815 100644
--- a/tasks/build/mergeConfig.js
+++ b/tasks/build/mergeConfig.js
@@ -32,6 +32,7 @@ const conf = {}
let fileCount = 0
async function main () {
+ console.warn(inputDir)
fs.readdirSync(inputDir).forEach(file => {
try {
if (!file.endsWith('.json')) return
diff --git a/tasks/buildOptions.sh b/tasks/buildOptions.sh
index 2a01af0be..7b831429f 100755
--- a/tasks/buildOptions.sh
+++ b/tasks/buildOptions.sh
@@ -114,32 +114,32 @@ if [ -e "$BUILD_DIR/colormaps" ] ; then
--outputDir "$BUILD_DIR/config/palettes"`
fi
-# # Throw error if no categoryGroupOrder.json file present
-# if [ ! -e "$BUILD_DIR/config/wv.json/categoryGroupOrder.json" ] ; then
-# echo "categoryGroupOrder.json not found. Generating..."
-# `node $SCRIPTS_DIR/generateCategoryGroupOrder.js \
-# --inputDir "$SRC_DIR/common/config/wv.json/categories/" \
-# --outputDir "$SRC_DIR/common/config/wv.json/"`
-# fi
+# Throw error if no categoryGroupOrder.json file present
+if [ ! -e "$BUILD_DIR/config/wv.json/categoryGroupOrder.json" ] ; then
+ echo "categoryGroupOrder.json not found. Generating..."
+ `node $SCRIPTS_DIR/generateCategoryGroupOrder.js \
+ --inputDir "$SRC_DIR/common/config/wv.json/categories/" \
+ --outputDir "$SRC_DIR/common/config/wv.json/"`
+fi
-# if [ -e "$OPT_DIR/$OPT_SUBDIR/layer-metadata/all.json" ] ; then
-# cp "$OPT_DIR/$OPT_SUBDIR/layer-metadata/all.json" "$BUILD_DIR/config/wv.json/layer-metadata.json"
-# fi
+if [ -e "$OPT_DIR/$OPT_SUBDIR/layer-metadata/all.json" ] ; then
+ cp "$OPT_DIR/$OPT_SUBDIR/layer-metadata/all.json" "$BUILD_DIR/config/wv.json/layer-metadata.json"
+fi
-# # Run mergeConfig.js on all directories in /config
-# configs=$(ls "$BUILD_DIR/config")
-# for config in $configs; do
-# case $config in
-# *.json)
-# `node $SCRIPTS_DIR/mergeConfig.js \
-# --inputFile "$BUILD_DIR/config/$config" \
-# --outputFile "$DEST_DIR/config/$config"`
-# ;;
-# *)
-# cp -r "$BUILD_DIR/config/$config" "$DEST_DIR/config/$config"
-# ;;
-# esac
-# done
+# Run mergeConfig.js on all directories in /config
+configs=$(ls "$BUILD_DIR/config")
+for config in $configs; do
+ case $config in
+ *.json)
+ `node $SCRIPTS_DIR/mergeConfig.js \
+ --inputDir "$BUILD_DIR/config/$config" \
+ --outputFile "$DEST_DIR/config/$config"`
+ ;;
+ *)
+ cp -r "$BUILD_DIR/config/$config" "$DEST_DIR/config/$config"
+ ;;
+ esac
+done
# # Run mergeConfigWithWMTS.js to merge layer metadata from WMTS GC with worldview layer configs into wv.json
# `node $SCRIPTS_DIR/mergeConfigWithWMTS.js \