Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

An unexpected layer now fails unless warnings are turned on or the layer is in the exception list

Mike McGannb9ceba546628
diff --git a/bin/wv-options-validate b/bin/wv-options-validate
index aab4bfc7d..e007415c6 100755
--- a/bin/wv-options-validate
+++ b/bin/wv-options-validate
@@ -71,7 +71,7 @@ if tolerant:
for layer_id in wv["layers"].keys():
layer = wv["layers"][layer_id]
if layer_id not in wv["layerOrder"]:
- if "layerOrderExceptions" in wv and layer_id in wv["layerOrderExceptions"]:
+ if layer_id in wv.get("layerOrderExceptions", []):
remove_layer(wv, layer_id)
continue
elif tolerant:
@@ -81,6 +81,7 @@ for layer_id in wv["layers"].keys():
remove_layer(wv, layer_id)
continue
else:
+ error("[%s] Unexpected layer, not in layer order" % layer_id)
remove_layer(wv, layer_id)
continue
if "projections" not in layer or len(layer["projections"]) == 0: