Mercurial > dive4elements > river
changeset 5222:3b86bf214d53
Fix check for river_name in dgm to handle unicode names
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Mon, 11 Mar 2013 16:52:02 +0100 |
parents | aa043641d9c8 |
children | 54f2a56752a1 |
files | flys-backend/contrib/shpimporter/dgm.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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=[]