[PATCH] Geoimporter: be case-insensitive when looking for floodplains
Wald Commits
scm-commit at wald.intevation.org
Fri Oct 25 15:40:02 CEST 2013
# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1382708399 -7200
# Node ID e10bfd2d2a5d9d0ecde94861dae16585f4fe66e9
# Parent f3b2aeb27e4bf84155ef9c88cf49d4fc75b55cf8
Geoimporter: be case-insensitive when looking for floodplains.
diff -r f3b2aeb27e4b -r e10bfd2d2a5d backend/contrib/shpimporter/floodplains.py
--- a/backend/contrib/shpimporter/floodplains.py Fri Oct 25 15:02:08 2013 +0200
+++ b/backend/contrib/shpimporter/floodplains.py Fri Oct 25 15:39:59 2013 +0200
@@ -29,7 +29,7 @@
def isShapeRelevant(self, name, path):
- return name.find("talaue") >= 0
+ return name.lower().find("talaue") >= 0
def createNewFeature(self, featureDef, feat, **args):
More information about the Dive4elements-commits
mailing list