[Dive4elements-commits] [PATCH] Do a case insensitive check for the layer name

Wald Commits scm-commit at wald.intevation.org
Fri Mar 8 10:16:27 CET 2013


# HG changeset patch
# User Andre Heinecke <aheinecke at intevation.de>
# Date 1362734181 -3600
# Node ID f0c47b4beded22c8bf7cfd20dc45a36c3dbd3b7f
# Parent  2a5b15e071d8d7dfb68dd081acbbc09e9b7f8d47
Do a case insensitive check for the layer name

diff -r 2a5b15e071d8 -r f0c47b4beded flys-backend/contrib/shpimporter/km.py
--- a/flys-backend/contrib/shpimporter/km.py	Fri Mar 08 09:18:03 2013 +0100
+++ b/flys-backend/contrib/shpimporter/km.py	Fri Mar 08 10:16:21 2013 +0100
@@ -29,7 +29,7 @@
 
 
     def isShapeRelevant(self, name, path):
-        return name == "km"
+        return name.lower() == "km"
 
 
     def createNewFeature(self, featureDef, feat, **args):


More information about the Dive4elements-commits mailing list