[Dive4elements-commits] [PATCH] Fixed upper and lower conversions in DGM

Wald Commits scm-commit at wald.intevation.org
Fri Mar 1 13:28:09 CET 2013


# HG changeset patch
# User Sascha L. Teichmann <teichmann at intevation.de>
# Date 1362140884 -3600
# Node ID f459911fdbfbe2b2d23e06faba4e338514dd7b54
# Parent  6b19902baf3130d7fe684dcedda421b04f3812b6
Fixed upper and lower conversions in DGM

diff -r 6b19902baf31 -r f459911fdbfb flys-backend/contrib/shpimporter/dgm.py
--- 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",


More information about the Dive4elements-commits mailing list