Interactive interface for browsing global, full-resolution satellite imagery
Check for transparency first to determine special colors
Mike McGann9f7ecc389206
diff --git a/bin/wv-options-colormap b/bin/wv-options-colormapindex af803bc73..a488668d7 100755--- a/bin/wv-options-colormap+++ b/bin/wv-options-colormap@@ -61,7 +61,10 @@ def process_file(file):a = 0 if entry["@transparent"] == "true" else 255color = "{0:02x}{1:02x}{2:02x}{3:02x}".format(int(r), int(g), int(b), a)label = entry["@label"]- if "@value" in entry:+ if a == 0:+ specialColors += [color]+ specialLabels += [label]+ elif "@value" in entry:items = re.sub(r"[\(\)\[\]]", "", entry["@value"]).split(",")try:scaleValues += [map(lambda v: float(v), items)]@@ -69,9 +72,6 @@ def process_file(file):raise ValueError("Invalid value: %s" % entry["@value"])scaleColors += [color]scaleLabels += [label]- elif a == 0:- specialColors += [color]- specialLabels += [label]else:classColors += [color]classLabels += [label]