Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Validation now fails if expecting to be configured via GC, it is not there, and layerOrder is being ignored

Mike McGannb3148b1d7d75
diff --git a/bin/wv-options-validate b/bin/wv-options-validate
index e007415c6..42b9837bf 100755
--- a/bin/wv-options-validate
+++ b/bin/wv-options-validate
@@ -74,7 +74,7 @@ for layer_id in wv["layers"].keys():
if layer_id in wv.get("layerOrderExceptions", []):
remove_layer(wv, layer_id)
continue
- elif tolerant:
+ elif tolerant or wv.get("ignoreLayerOrder", False):
wv["layerOrder"] += [layer_id]
elif opt.get("warnOnUnexpectedLayer"):
warn("[%s] Unexpected layer, not in layer order" % layer_id)
@@ -89,6 +89,11 @@ for layer_id in wv["layers"].keys():
layer_id)
remove_layer(wv, layer_id)
continue
+ if "type" not in layer:
+ error("[" + layer_id + "] No type defined. Possible to be expecting " +
+ "configuration via GC document but was not found")
+ remove_layer(wv, layer_id)
+ continue
if "palette" in layer and "id" not in layer["palette"]:
error("[%s] No palette definition" % (layer_id))
elif "palette" in layer: