Mercurial > dive4elements > river
diff flys-backend/contrib/shpimporter/dgm.py @ 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 | 76818dc2c937 |
children | 8f71fe38977c |
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=[]