[Dive4elements-commits] [PATCH 4 of 4] Fix check for river_name in dgm to handle unicode names
Wald Commits
scm-commit at wald.intevation.org
Mon Mar 11 16:52:39 CET 2013
# HG changeset patch
# User Andre Heinecke <aheinecke at intevation.de>
# Date 1363017122 -3600
# Node ID 3b86bf214d53da51d85cd8c8ecfeec71aa9da9e4
# Parent aa043641d9c8614e9d119a35da39a2c0bda4ef60
Fix check for river_name in dgm to handle unicode names
diff -r aa043641d9c8 -r 3b86bf214d53 flys-backend/contrib/shpimporter/dgm.py
--- a/flys-backend/contrib/shpimporter/dgm.py Mon Mar 11 16:47:05 2013 +0100
+++ b/flys-backend/contrib/shpimporter/dgm.py Mon Mar 11 16:52:02 2013 +0100
@@ -116,7 +116,8 @@
for line in csvfile:
fields = line.split(";")
if not fields: continue
- if fields[namedict[latin("Gewässer")]] != river_name:
+ if fields[namedict[latin("Gewässer")]] != \
+ unicode(utils.getUTF8(river_name),'UTF-8'):
continue
else:
values=[]
More information about the Dive4elements-commits
mailing list