Skip to content

Instantly share code, notes, and snippets.

@tmcw tmcw/gist:148496
Created Jul 16, 2009

What would you like to do?
# Restrict layer list, if requested
if self.layers and self.layers !=
layers = self.layers.split(",")
for layer_num in range(len(m.layers)-1, -1, -1):
l = m.layers[layer_num]
if not in layers:
del m.layers[layer_num]
if self.debug:
print >>sys.stderr, "Removed layer %s loaded from %s, not in list: %s" % (, self.mapfile, layers)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.