Interactive interface for browsing global, full-resolution satellite imagery
Allow exceptions for color maps to retrieve
Mike McGann046a8756b183
diff --git a/bin/wv-options-validate b/bin/wv-options-validateindex 1c142056c..f10cb1ee7 100755--- a/bin/wv-options-validate+++ b/bin/wv-options-validate@@ -72,8 +72,9 @@ 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"]:+ remove_layer(wv, layer_id)continue- if tolerant:+ elif tolerant:wv["layerOrder"] += [layer_id]else:warn("[%s] Unexpected layer, not in layer order" % layer_id)diff --git a/bin/wv-options-wmts b/bin/wv-options-wmtsindex 2287cceea..014bb49c6 100755--- a/bin/wv-options-wmts+++ b/bin/wv-options-wmts@@ -114,14 +114,20 @@ def process_layer(gc_layer, wv_layers, colormaps):# Colormap linksif "ows:Metadata" in gc_layer:- # FIXME: Assumes that there is only one metdata element- colormap_link = gc_layer["ows:Metadata"]["@xlink:href"]- colormap_file = os.path.basename(colormap_link)- colormap_id = os.path.splitext(colormap_file)[0]- colormaps[colormap_id] = colormap_link- wv_layer["palette"] = {- "id": colormap_id- }+ if "skipPalettes" in config and id in config["skipPalettes"]:+ sys.stderr.write("%s: WARNING: Skipping palette for %s\n" % (+ prog, id))+ global total_warning_count+ total_warning_count += 1+ else:+ # FIXME: Assumes that there is only one metdata element+ colormap_link = gc_layer["ows:Metadata"]["@xlink:href"]+ colormap_file = os.path.basename(colormap_link)+ colormap_id = os.path.splitext(colormap_file)[0]+ colormaps[colormap_id] = colormap_link+ wv_layer["palette"] = {+ "id": colormap_id+ }def process_entry(entry, colormaps):layer_count = 0