Mercurial > dive4elements > river
diff backend/contrib/shpimporter/dgm.py @ 7352:c6825778de1f
Merged double-precision branch.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Wed, 16 Oct 2013 13:03:13 +0200 |
parents | bb5bd48b80f6 |
children |
line wrap: on
line diff
--- a/backend/contrib/shpimporter/dgm.py Wed Oct 16 12:39:33 2013 +0200 +++ b/backend/contrib/shpimporter/dgm.py Wed Oct 16 13:03:13 2013 +0200 @@ -122,8 +122,10 @@ else: values.append(unicode.encode( fields[namedict[val]], "UTF-8")) - km_von = fields[namedict["km_von"]] - km_bis = fields[namedict["km_bis"]] + km_von = min(float(fields[namedict["km_von"]]), + float(fields[namedict["km_bis"]])) + km_bis = max(float(fields[namedict["km_von"]]), + float(fields[namedict["km_bis"]])) year_from = None year_to = None try: