Mercurial > dive4elements > river
comparison flys-backend/contrib/shpimporter/dgm.py @ 5159:074051942f92
merge
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Fri, 01 Mar 2013 13:33:03 +0100 |
parents | f459911fdbfb |
children | 908848b74d7e |
comparison
equal
deleted
inserted
replaced
5158:a9658d43b621 | 5159:074051942f92 |
---|---|
6 def latin(string): | 6 def latin(string): |
7 return unicode(string, "latin1") | 7 return unicode(string, "latin1") |
8 | 8 |
9 # <dbfield> : (<csvfield>, conversion function) | 9 # <dbfield> : (<csvfield>, conversion function) |
10 DGM_MAP = { | 10 DGM_MAP = { |
11 "lower" : ("km_von", lambda x: int(x)), | 11 "lower" : ("km_von", lambda x: float(x)), |
12 "upper" : ("km_bis", lambda x: int(x)), | 12 "upper" : ("km_bis", lambda x: float(x)), |
13 "year_from" : "Jahr_von", | 13 "year_from" : "Jahr_von", |
14 "year_to" : "Jahr_bis", | 14 "year_to" : "Jahr_bis", |
15 "projection" : "Projektion", | 15 "projection" : "Projektion", |
16 "elevation_state" : latin("Höhenstatus"), | 16 "elevation_state" : latin("Höhenstatus"), |
17 "format" : "Format", | 17 "format" : "Format", |