changeset 5156:f459911fdbfb

Fixed upper and lower conversions in DGM
author Sascha L. Teichmann <teichmann@intevation.de>
date Fri, 01 Mar 2013 13:28:04 +0100
parents 6b19902baf31
children 608c6acf74c8
files flys-backend/contrib/shpimporter/dgm.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/flys-backend/contrib/shpimporter/dgm.py	Fri Mar 01 12:40:15 2013 +0100
+++ b/flys-backend/contrib/shpimporter/dgm.py	Fri Mar 01 13:28:04 2013 +0100
@@ -8,8 +8,8 @@
 
 # <dbfield> : (<csvfield>, conversion function)
 DGM_MAP = {
-    "lower"           : ("km_von", lambda x: int(x)),
-    "upper"           : ("km_bis", lambda x: int(x)),
+    "lower"           : ("km_von", lambda x: float(x)),
+    "upper"           : ("km_bis", lambda x: float(x)),
     "year_from"       : "Jahr_von",
     "year_to"         : "Jahr_bis",
     "projection"      : "Projektion",

http://dive4elements.wald.intevation.org