assert scheme in ('wmts', 'tms', 'xyz'), "Unknown scheme %s" % scheme