Mercurial > dive4elements > river
changeset 4951:23a090b41543 dami
Importer: Check lowercase pathname and handle utf-8 conversion
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Fri, 01 Feb 2013 09:12:33 +0100 |
parents | 3dbe89cbf0c1 |
children | 5a0225ddae2b |
files | flys-backend/contrib/shpimporter/axis.py flys-backend/contrib/shpimporter/importer.py |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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):
--- 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: