[Dive4elements-commits] [PATCH] Importer: Check lowercase pathname and handle utf-8 conversion
Wald Commits
scm-commit at wald.intevation.org
Fri Feb 1 09:12:38 CET 2013
# HG changeset patch
# User Andre Heinecke <aheinecke at intevation.de>
# Date 1359706353 -3600
# Branch dami
# Node ID 23a090b41543070e369e7881e0c950f5ce5d228c
# Parent 3dbe89cbf0c1e05f3e8b0aa20833ce1289a12578
Importer: Check lowercase pathname and handle utf-8 conversion
diff -r 3dbe89cbf0c1 -r 23a090b41543 flys-backend/contrib/shpimporter/axis.py
--- a/flys-backend/contrib/shpimporter/axis.py Thu Jan 31 12:24:52 2013 +0100
+++ b/flys-backend/contrib/shpimporter/axis.py Fri Feb 01 09:12:33 2013 +0100
@@ -27,7 +27,7 @@
def isShapeRelevant(self, name, path):
- return name == "achse" or name.find("achse") >= 0
+ return "achse" in name.lower()
def createNewFeature(self, featureDef, feat, **args):
diff -r 3dbe89cbf0c1 -r 23a090b41543 flys-backend/contrib/shpimporter/importer.py
--- a/flys-backend/contrib/shpimporter/importer.py Thu Jan 31 12:24:52 2013 +0100
+++ b/flys-backend/contrib/shpimporter/importer.py Fri Feb 01 09:12:33 2013 +0100
@@ -187,7 +187,7 @@
if self.isGeometryValid(geomType):
newFeat = self.createNewFeature(featureDef,
feat,
- name=name,
+ name=utils.getUTF8(name),
path=path)
if newFeat is not None:
More information about the Dive4elements-commits
mailing list