def wmo_shapes(): wmo = [] for i in xrange(100, 203): if i in __shape_cache: wmo.append(__shape_cache[i]) else: try: val = checkMarker(None, "type", i) wmo.append(val) __shape_cache[i] = val except ValueError: pass return wmo
def marker_shapes(): # Returns all shapes that are supported (skips star for now), indexed numerically shapes = [] for i in xrange(1, 20): if i in __shape_cache: shapes.append(__shape_cache[i]) else: try: val = checkMarker(None, "type", i) shapes.append(val) __shape_cache[i] = val except ValueError: pass return shapes